Comments (3)
7.0 的 AGP 吗,这个正在适配了,近期会发布。
from btrace.
7.0 的 AGP 吗,这个正在适配了,近期会发布。
不仅7.0的AGP开启minifyEnable会导致插桩失败
在4.1.0的AGP上开启R8也会导致插桩失败。你们这个仓库的demo就可以复现,将gradle.properties中android.enableR8改成true,然后编译,插桩并没有生效
from btrace.
+1 ,碰到了跟楼主一样的问题。
AGP版本为4.1.0
没有完全打开r8,仅开启minifyEnable配置的情况下:
android.enableR8.fullMode=false
minifyEnabled true
shrinkResources true
搜了下,对应处理源码应该在 rhea-build/rhea-gradle-plugin/src/main/java/com/bytedance/rheatrace/plugin/internal/CopyMappingTask.kt 里面,仅判断了是否指定了enableR8属性,上述配置情况下,会走hookAssetsTask方法尝试hook dexbuilder,但开启minifyEnabled之后并不会dexbuilder task,导致hook 失败无法生成methodMapping文件。
val enableR8 = "false" != project.properties["android.enableR8"]
if (enableR8) {
hookAssetsTaskR8(variant, project, assetsDir)
} else {
hookAssetsTask(variant, project, assetsDir)
}
from btrace.
Related Issues (20)
- btrace在android sdk升级13之后编译报错 HOT 1
- 编译错误,RuntimeException: java.lang.RuntimeException: We found duplicate *** class files HOT 2
- 怎么才能看到系统进程的trace呢? HOT 1
- 红米k40手机,MUI系统,Android SDK 33版本,也是提示不支持不支持perfetto,让增加-mode simple后抓取trace可以查看 HOT 2
- 2.0.3-rc02 版本无法通过构建 HOT 1
- make project时 部分显示[MethodTracer] Failed HOT 1
- gradle 7.5 HOT 3
- 生成的trace文件里面只有线程状态,其他什么都没有 HOT 1
- org.gradle.api.CircularReferenceException: Circular dependency between the following tasks HOT 4
- 运行app报错 HOT 1
- 什么时候支持AGP8.+ HOT 5
- 插桩没有真正生效
- 执行的时候报异常,无法正常抓取 HOT 3
- 项目接入btrace编译无法通过 HOT 1
- 生成的trace文件里面只有线程状态,其他什么都没有 + 1 HOT 7
- 渲染监控的时候,Java层inflate布局的时候将布局和view信息绑定到RenderNode的时候调用libutils.so的_ZN7android7String85clearEv会出现大量的Crash HOT 3
- Pixel8 & Pixel7上抓不了trace HOT 1
- 工程接入后运行报错Unexpected end of file from server
- 抖音无法使用btrace吗? HOT 1
- 使用后生成的class,R8编译报错 HOT 3
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 btrace.