-
Notifications
You must be signed in to change notification settings - Fork 2k
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.NoClassDefFoundError,自己解决了,贡献一下思路。 #32
Comments
ok,感谢贡献,已将该 issues 收录于 #13 (comment) |
请问在不升级版本的情况下,这个问题有没有其他方案解决呢?FragmentManager.FragmentLifecycleCallbacks可以替换成其他的类吗? |
@GeminiWy 使用旧版本 v0.7.0,里面不包含 FragmentManager.FragmentLifecycleCallback 以及 v7 包 |
这个坑我也找了好久,需要support v4 25以上 |
我也遇到了这个错误 这里分享一下我的解决经验 |
java.lang.RuntimeException: Unable to get provider me.jessyan.autosize.InitProvider: java.lang.ClassNotFoundException: Didn't find class "me.jessyan.autosize.InitProvider" |
@kongfanshuai multidex |
java.lang.ClassNotFoundException,Didn't find class "me.jessyan.autosize.InitProvider" on path: DexPathList[[zip file "/data/app/-1.apk"],nativeLibraryDirectories=[/data/app-lib-1, /vendor/lib, /system/lib, /data/datalib]],BaseDexClassLoader.java,56] 兼容测试部分手机运行报这个错误 ,App 已添加 MultiDex.install(this) auto版本1.1.2 multidex版本1.0.3 |
AndroidAutoSize 0.7.0 + 1.1.2 综合版本 |
java.lang.ClassNotFoundException,Didn't find class "me.jessyan.autosize.InitProvider" on path: DexPathList[[zip file "/data/app/-1.apk"],nativeLibraryDirectories=[/data/app-lib-1, /vendor/lib, /system/lib, /data/datalib]],BaseDexClassLoader.java,56] auto版本1.2.1, 系统android10,奔溃 |
Environment
Bug Description:
java.lang.NoClassDefFoundError: me.jessyan.autosize.FragmentLifecycleCallbacksImpl
at me.jessyan.autosize.ActivityLifecycleCallbacksImpl.(ActivityLifecycleCallbacksImpl.java:45)
日志中提示FragmentLifecycleCallbacksImpl这个类找不到,报错,但是我去External Libraries里面能找到引入的Autosize包里面有该类。所以这个问题显得很诡异。
不知道问题出在哪里,只能回到原点,自己新建工程,重新引入,运行,没问题!这就奇怪了。于是我对比gradle里面的依赖及配置信息,由于使用的是Android studio 3.1.4,compileSdkVersion,targetSdkVersion,com.android.support:appcompat-v7:26.1.0等属性版本不一致,版本23可能太低了, 改成使用新建工程后的默认版本26,具体版本可参照新建工程后的版本,问题解决了。
Log:
Screenshot
Related Code:
Others:
The text was updated successfully, but these errors were encountered: