alibaba / ARouter

💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)
Apache License 2.0
14.45k stars 2.61k forks source link

Gradle升级到7.0后,编译环境需要使用java11,当改成java11,编译工程报This feature requires ASM7 #981

Open yunxingyu opened 2 years ago

yunxingyu commented 2 years ago

Caused by: java.lang.UnsupportedOperationException: This feature requires ASM7 at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:150) at org.objectweb.asm.ClassReader.accept(ClassReader.java:550) at org.objectweb.asm.ClassReader.accept(ClassReader.java:400) at org.objectweb.asm.ClassReader$accept.call(Unknown Source) at com.alibaba.android.arouter.register.utils.ScanUtil.scanClass(ScanUtil.groovy:66) at com.alibaba.android.arouter.register.utils.ScanUtil$scanClass$1.callStatic(Unknown Source) at com.alibaba.android.arouter.register.utils.ScanUtil$scanClass$1.callStatic(Unknown Source) at com.alibaba.android.arouter.register.utils.ScanUtil.scanJar(ScanUtil.groovy:34) at com.alibaba.android.arouter.register.utils.ScanUtil$scanJar$0.call(Unknown Source) at com.alibaba.android.arouter.register.core.RegisterTransform$_transform_closure1$_closure3.doCall(RegisterTransform.groovy:87) at jdk.internal.reflect.GeneratedMethodAccessor1532.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at com.alibaba.android.arouter.register.core.RegisterTransform$_transform_closure1.doCall(RegisterTransform.groovy:73) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Goooler commented 2 years ago

你用的有问题吧,Gradle 7.4 + AGP 7.1 用得好好的

feicien commented 2 years ago

我目前 AGP 7.1.1 + Java 11 + ARouter 1.5.2 也是可以正常使用的

972223177 commented 2 years ago

同样的问题,agp版本7.1.2

litao0621 commented 2 years ago

同样的问题,agp版本7.1.3

licoba commented 2 years ago

同样的问题,agp版本7.2.0

NByida commented 2 years ago

已经改好了:https://github.com/NByida/ARouter/blob/develop/%E4%BF%AE%E5%A4%8Dasm5%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98.md

lujun525 commented 8 months ago

已经改好了:https://github.com/NByida/ARouter/blob/develop/%E4%BF%AE%E5%A4%8Dasm5%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98.md

这个提示Connection reset

972223177 commented 8 months ago

诚聘网络兼职工资日结!还不错~ 详情请登陆招聘网站http://brorx.cn/?;