JailedBird / ArouterGradlePlugin

Arouter auto register plugin for AGP7.4+ & AGP8
Apache License 2.0
46 stars 7 forks source link

插完桩,俩类丢了,看着是这里出了问题 #6

Closed xiaojianli closed 7 months ago

xiaojianli commented 8 months ago
ArouterGradlePlugin task start:
[Warning] Merge [jar:entry] D:\AndroidProject\Work\SmartQrcode\creator\build\.transforms\c5a19e8ae28b59859061830678217fc8\transformed\classes.jar:com/alibaba/android/arouter/routes/ARouter$$Group$$creator$1.class, error is java.lang.UnsupportedOperationException: NestHost requires ASM7 
[Warning] Merge [jar:entry] D:\AndroidProject\Work\SmartQrcode\creator\build\.transforms\c5a19e8ae28b59859061830678217fc8\transformed\classes.jar:com/alibaba/android/arouter/routes/ARouter$$Group$$creator.class, error is java.lang.UnsupportedOperationException: NestMember requires ASM7 
[Warning] Merge [jar:entry] D:\AndroidProject\Work\SmartQrcode\base\barcode-info\build\.transforms\ac20f8e6f3032861d032417dfc70c58f\transformed\classes.jar:com/alibaba/android/arouter/routes/ARouter$$Group$$barcode$1.class, error is java.lang.UnsupportedOperationException: NestHost requires ASM7 
[Warning] Merge [jar:entry] D:\AndroidProject\Work\SmartQrcode\base\barcode-info\build\.transforms\ac20f8e6f3032861d032417dfc70c58f\transformed\classes.jar:com/alibaba/android/arouter/routes/ARouter$$Group$$barcode.class, error is java.lang.UnsupportedOperationException: NestMember requires ASM7 
xiaojianli commented 8 months ago

Compiler 使用 ksp 'com.github.JailedBird:ArouterKspCompiler:1.9.20-1.0.7 ' 貌似解决了

JailedBird commented 8 months ago

Compiler 使用 ksp 'com.github.JailedBird:ArouterKspCompiler:1.9.20-1.0.7 ' 貌似解决了

麻烦确认下是 注解处理生成代码 阶段就缺失了? 还是 插装没插上导致的缺失?

xiaojianli commented 8 months ago

注解处理器生成类的内容没问题 从ArouterGradlePlugin 的log看,应该是插桩的时候出的问题 NestHost requires ASM7 ASM的版本不匹配应该是

JailedBird commented 7 months ago

注解处理器生成类的内容没问题 从ArouterGradlePlugin 的log看,应该是插桩的时候出的问题 NestHost requires ASM7 ASM的版本不匹配应该是

代码里面是ASM5,我抽空改改

JailedBird commented 7 months ago

麻烦试一下 1.0.2-beta01 代码使用ASM5->ASM7 https://github.com/JailedBird/ArouterGradlePlugin/commit/cd9270c2dddcd07f16194b63eb21adeecad490ce

JailedBird commented 7 months ago

注解处理器生成类的内容没问题 从ArouterGradlePlugin 的log看,应该是插桩的时候出的问题 NestHost requires ASM7 ASM的版本不匹配应该是

可以用新版本试试么? 可以的话,麻烦反馈下结论;感谢

JailedBird commented 7 months ago

没得问题,三天后我关闭了哈🤣