Comments (6)
项目中的ASM太老了,而且有些依赖没啥必要,可以自行升级重新发布下。
我直接升级到了9.0,适当改了点代码重新发布到了MavenCentral,我的环境附于最后仅供参考。
除了声明插件时的classpath修改为:
classpath("io.github.leobert-lan:traceman-plugin:1.0.6")
使用上没有任何变化。
可能同步到Maven索引还需要一些时间,可以通过:
Maven 检索 追踪一下。
升级的依赖如下:
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.tools.build</groupId>
<artifactId>gradle</artifactId>
<version>3.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.5.31</version>
<scope>compile</scope>
</dependency>
注意项目需要配置:
android {
//...
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
环境参考:
- AS:ArcTic Fox 2020.3.1 patch 3
- kgp: classpath(kotlin("gradle-plugin", version = 1.5.10)) 未使用AGP
- build-tool: classpath("com.android.tools.build:gradle:4.1.1")
- gradle:6.5
gradle 7.0 及其以上版本可能会遇到问题,如果有遇到问题可能需要大改plugin。
from methodtraceman.
+1
from methodtraceman.
怎么解决的?
from methodtraceman.
棒!
from methodtraceman.
Thank you very much! @leobert-lan
from methodtraceman.
@leobert-lan 我的就是7.0,水平有限,改不动啦~~
from methodtraceman.
Related Issues (20)
- 编译失败了 HOT 2
- Ubuntu 18.04.4点小灯泡浏览器没有反应 HOT 1
- 能否查看app启动过程耗时?貌似现在必须app进程启动之后才能点击开始检测 HOT 1
- gradle 版本问题 HOT 1
- Execution failed for task ':app:transformClassesWithTraceManTransformForDebug'. HOT 5
- 能判断如果方法体为空,就不进行插桩吗? HOT 1
- <<App流畅度优化:利用字节码插桩实现一个快速排查高耗时方法的工具>>详细文章 404了 HOT 1
- MethodTraceMan plugin install fails on AndroidStudio 4.1 HOT 2
- 插件不兼容Android studio 4.1.2 HOT 2
- 可能需要添加混淆规则?
- 下载项目测试,浏览器不显示数据是什么问题 HOT 1
- Android Studiio 4.2 无法安装插件 HOT 4
- 接入之后启动app闪退
- 编译报错 HOT 1
- cn.cxzheng.asmtraceman 找不到
- 这锁一加,整个app单线程了 HOT 1
- This feature requires ASM6 HOT 1
- 发送0 条信息 HOT 1
- 有部分展示插桩,但是最终编译失败,是插桩的文件太多了?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from methodtraceman.