Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsupportedOperationException: NestHost requires ASM7 #157

Open
Primer1889 opened this issue Feb 17, 2023 · 2 comments
Open

java.lang.UnsupportedOperationException: NestHost requires ASM7 #157

Primer1889 opened this issue Feb 17, 2023 · 2 comments

Comments

@Primer1889
Copy link

java.lang.UnsupportedOperationException: NestHost requires ASM7
at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:174)
at org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:399)
at com.ss.android.ugc.bytex.common.visitor.ClassVisitorChain.accept(ClassVisitorChain.java:65)
at com.ss.android.ugc.bytex.common.processor.ClassFileAnalyzer.handle(ClassFileAnalyzer.java:102)
at com.ss.android.ugc.bytex.transformer.processor.ClassFileProcessor.process(ClassFileProcessor.java:27)
at com.ss.android.ugc.bytex.transformer.processor.ProcessorChain.proceed(ProcessorChain.java:30)
at com.ss.android.ugc.bytex.transformer.processor.FilterFileProcessor.process(FilterFileProcessor.java:23)
at com.ss.android.ugc.bytex.transformer.processor.ProcessorChain.proceed(ProcessorChain.java:30)
at com.ss.android.ugc.bytex.transformer.processor.task.TraverseTask.compute(TraverseTask.java:31)
at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

@Primer1889
Copy link
Author

Task :app:transformClassesWithShrinkRFileForCommonRelease FAILED
java.lang.IllegalStateException: The configuration :app:commonReleaseRuntimeClasspath was resolved from a thread not managed by Gradle.

可我本地已经使用 ASM9.4

implementation 'org.ow2.asm:asm:9.4'
implementation 'org.ow2.asm:asm-commons:9.4'
classpath 'com.android.tools.build:gradle:4.1.2'
distributionUrl=https://services.gradle.org/distributions/gradle-7.2-all.zip

@Knight-ZXW
Copy link

你可以通过 byteX的配置 来支持, 通过修改根工程目录的 gradle.properties ,增加以下配置。
bytex.ASM_API=ASM7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants