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

Caused by: java.lang.IllegalArgumentException: Invalid opcode 169 #81

Open
taoliuh opened this issue May 27, 2021 · 1 comment
Open

Comments

@taoliuh
Copy link

taoliuh commented May 27, 2021

Caused by: java.lang.IllegalArgumentException: Invalid opcode 169
at org.objectweb.asm.commons.AdviceAdapter.visitVarInsn(AdviceAdapter.java:355)
at org.objectweb.asm.ClassReader.readCode(ClassReader.java:2174)
at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1283)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:688)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:400)
at org.objectweb.asm.ClassReader$accept.call(Unknown Source)
at cn.hikyson.methodcanary.plugin.TransformHandler.handleJarInputs(TransformHandler.groovy:109)
at cn.hikyson.methodcanary.plugin.TransformHandler$_handle_closure1$_closure4.doCall(TransformHandler.groovy:50)
at cn.hikyson.methodcanary.plugin.TransformHandler$_handle_closure1.doCall(TransformHandler.groovy:49)
at cn.hikyson.methodcanary.plugin.TransformHandler.handle(TransformHandler.groovy:45)
at cn.hikyson.methodcanary.plugin.TransformHandler$handle.call(Unknown Source)
at cn.hikyson.methodcanary.plugin.MethodCanaryTransform.transform(MethodCanaryTransform.groovy:42)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:284)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:247)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:106)
at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:242)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)

I got this error when 高德 map is integrated. I want to ignore 高德 map package when gradle plugin doing scan work. But I cannot find groovy plugin in this project. Can you provide source code of this plugin called "cn.hikyson.methodcanary:plugin:0.15.5"

@taoliuh taoliuh changed the title Execution failed for task ':app:transformClassesWithMethodCanaryTransformForDebug' Caused by: java.lang.IllegalArgumentException: Invalid opcode 169 May 27, 2021
@Kyson
Copy link
Owner

Kyson commented Jun 29, 2021

@taoliuh Plugin Source Code is in https://github.com/Kyson/MethodCanary

It is asm version conflict with 高德sdk.

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