trycatchx / RocketX

🔥🔥 android 端编译加速插件🚀 动态识别未改动 module 并在编译流程中替换为 aar ,只编译改动模块,加速 Android apk 的编译速度。
861 stars 104 forks source link

Android resource linking failed #15

Closed realchenzhi closed 2 years ago

realchenzhi commented 2 years ago

image

第二次clean后build就会报错了。 另外我的使用RocktX的方式,在build.gradle(app)下添加了

apply plugin: 'com.rocketx'

然后开启小火箭插件才有效(.gradle下有缓存),文档好像没有写到这个apply

realchenzhi commented 2 years ago

再 run 还是一样报错

realchenzhi commented 2 years ago

image 报错太多了,有点奇怪。 agp 4.0.1 gradle 6.1.1

trycatchx commented 2 years ago

image

第二次clean后build就会报错了。 另外我的使用RocktX的方式,在build.gradle(app)下添加了

apply plugin: 'com.rocketx'

然后开启小火箭插件才有效(.gradle下有缓存),文档好像没有写到这个apply

是的需要加入 apply plugin: 'com.rocketx' ,后面我再文档上补一下。

trycatchx commented 2 years ago

image 报错太多了,有点奇怪。 agp 4.0.1 gradle 6.1.1

voice 的 build.gradle 方便看一下吗?(关闭 rockectx 是可以编译过去的吗?)

trycatchx commented 2 years ago

@realchenzhi 看样子好像是 资源链接的问题?gradle sync image一下再编译

realchenzhi commented 2 years ago

gradle sync 还是会有问题,看起来只有app模块对其他模块的引用资源会报错。 @trycatchx

trycatchx commented 2 years ago

@realchenzhi 我在 demo 中,使用 app module 引用 projectC 的 资源目前没有发现问题。image

trycatchx commented 2 years ago

@realchenzhi 你看下能找到导致这个问题的具体原因不。目前我也在自家的大型项目运行通过。app 模块也会依赖 comm module 的一些资源。运行正常