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

Execution failed for task ':app:transformClassesWithMethodCanaryTransformForDebug'. #80

Open
ylc88 opened this issue Feb 6, 2021 · 5 comments

Comments

@ylc88
Copy link

ylc88 commented Feb 6, 2021

hello

use methodCanary build throw

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)

@Kyson
Copy link
Owner

Kyson commented Feb 8, 2021

Can you provide the version of AndroidGodEye?

@ylc88
Copy link
Author

ylc88 commented Feb 8, 2021

Can you provide the version of AndroidGodEye?

thank you for your reply
AndroidGodEye version:3.4.3
methodcanary plugin: 0.15.5

Android studio version:4.1.2
gradle: gradle-5.6.4-all
Only methodcanary reports errors, others can be used normally, thank you

@Kyson
Copy link
Owner

Kyson commented Feb 18, 2021

This may be due to low version of asm, i will fix it recently

@Kyson
Copy link
Owner

Kyson commented Feb 18, 2021

You can downgrade AGP for now

@ylc88
Copy link
Author

ylc88 commented Feb 18, 2021

You can downgrade AGP for now

ok, thank you

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