-
Notifications
You must be signed in to change notification settings - Fork 4
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.IncompatibleClassChangeError on Android 5.0-6.0 #17
Comments
If you have a custom It would be helpful if you can share a minimal project that can reproduce this issue. |
My @Override
public Application newApplication(ClassLoader cl, String className, Context context) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
DexOpener.builder(context)
.buildConfig(BuildConfig.class)
.build()
.installTo(cl);
return super.newApplication(cl, TestApp.class.getName(), context);
} I will try to setup simple project with this issue. |
Don't call return super.newApplication(cl, "your.app.test.TestApp", context); |
Tried using raw string: still same exception. Currently can't identify what of my code cause this to setup minimal project... The only thing I see that: this classes was generated by Dagger (subcomponent builders). |
Also I use multidex for debug builds, but as I see, all this classes in exception located in a single dex... |
Just found the corresponding issue in the google bug tracker, if anyone is interested. |
Exception message in runtime:
Class 'ua.pl.mik.app.DaggerAppComponent$SomeLongNameBuilder' does not implement interface 'ua.pl.mik.app.net.ApiComponent$Builder' in call to 'ua.pl.mik.app.net.ApiComponent ua.pl.mik.app.net.ApiComponent$Builder.build()
Class names was changed a bit.
On Android 7.0+ same apks (main + androidTest) working fine.
The text was updated successfully, but these errors were encountered: