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

使用ASM插件,报找不到com.argusapm.android.core.job.func.FuncTrace #39

Open
guanbo123456 opened this issue Apr 18, 2019 · 3 comments

Comments

@guanbo123456
Copy link

使用ASM插件,报找不到com.argusapm.android.core.job.func.FuncTrace

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/argusapm/android/core/job/func/FuncTrace;
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.argusapm.android.core.job.func.FuncTrace" on path: DexPathList[[zip file "/data/app/com.yqxue.yqxue-1/base.apk"],nativeLibraryDirectories=[/data/app/com.yqxue.yqxue-1/lib/arm, /data/app/com.yqxue.yqxue-1/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at cn.jiguang.a.a.c.f.run(Unknown Source) 
2019-04-18 17:51:16.710 21954-22089/? E/AndroidRuntime: FATAL EXCEPTION: Thread-20
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/argusapm/android/core/job/func/FuncTrace;
at cn.jiguang.a.a.c.f.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.argusapm.android.core.job.func.FuncTrace" on path: DexPathList[[zip file "/data/app/com.yqxue.yqxue-1/base.apk"],nativeLibraryDirectories=[/data/app/com.yqxue.yqxue-1/lib/arm, /data/app/com.yqxue.yqxue-1/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

@akathink
Copy link
Collaborator

@guanbo123456 关于该问题请确认一下:

  1. app的方法数是否超过了65536;
  2. 采用官方提供的Demo,切换成asm插件,看看是否还有该问题。

@guanbo123456
Copy link
Author

应该是由于开源的argus-apm-main模块代码里没有com.argusapm.android.core.job.func.FuncTrace相关文件

@akathink
Copy link
Collaborator

akathink commented Apr 25, 2019

应该是由于开源的argus-apm-main模块代码里没有com.argusapm.android.core.job.func.FuncTrace相关文件

@guanbo123456

HI,我在Demo里面使用 classpath 'com.qihoo360.argusapm:argus-apm-gradle-asm:3.0.1.1001' 跑了一下,没有出现上面的问题,你可以使用这个版本的插件试一下。如有问题的话,可以给我们提供一个Demo,谢谢!

另外,开源的模块里面暂时还没有上传Func模块。

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