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

Android 5.0 java.lang.IncompatibleClassChangeError #337

Open
gordonpro opened this issue Feb 13, 2015 · 6 comments · May be fixed by #344
Open

Android 5.0 java.lang.IncompatibleClassChangeError #337

gordonpro opened this issue Feb 13, 2015 · 6 comments · May be fixed by #344

Comments

@gordonpro
Copy link

java.lang.IncompatibleClassChangeError: org.apache.http.params.SyncBasicHttpParams
            at dalvik.system.DexFile.defineClassNative(Native Method)
            at dalvik.system.DexFile.defineClass(DexFile.java:226)
            at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
            at dalvik.system.DexPathList.findClass(DexPathList.java:321)
            at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
            at java.lang.Class.classForName(Native Method)
            at java.lang.Class.forName(Class.java:308)
            at com.activeandroid.ModelInfo.scanForModelClasses(ModelInfo.java:187)
            at com.activeandroid.ModelInfo.scanForModel(ModelInfo.java:152)
            at com.activeandroid.ModelInfo.<init>(ModelInfo.java:63)
            at com.activeandroid.Cache.initialize(Cache.java:66)
            at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:44)
            at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:34)
            at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:30)
            at com.xxxxker.App.onCreate(App.java:67)

I tested the android version lower 5.0, them all work fine.

@zsoltk
Copy link

zsoltk commented Feb 26, 2015

I'm having the same issue. Looking at the source of the ModelInfo class, maybe just another catch block is all that we would need, as SyncBasicHttpParams is clearly not a Model class.

@zsoltk zsoltk linked a pull request Mar 2, 2015 that will close this issue
@zsoltk
Copy link

zsoltk commented Mar 2, 2015

It indeed fixes it. I created a pull request: #344

As a sidenote: the automatic Travis build yet again fails with
The command "echo no | android create avd --force -n test -t $ANDROID_SDK --abi $ANDROID_ABI" failed and exited with 1 during ., just like almost all the time. It doesn't even start the tests, and I see lots of pull request with the same fate. Anyone knows what's the problem?

EDIT: I guess #310 would fix the Travis issue, but repo owner seems pretty much inactive...

@chechoora
Copy link

you can define all you model classes in Manifest

so AA wont scan Apache folders and classes. Works for me.

@lilincpp
Copy link

I'm having the same issue.Anyone can help me?

@sachinletsgo
Copy link

any Update?

@Gituheart
Copy link

lot of issue, don't use this

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

Successfully merging a pull request may close this issue.

6 participants