ActiveAndroid icon indicating copy to clipboard operation
ActiveAndroid copied to clipboard

Problem with Android 5.x

Open amartorello opened this issue 10 years ago • 3 comments

Hi, i'm working with yours framework to developer an application but i've a problem with versions of android 5.0.1 and next. Here i report my error:

07-02 15:28:39.298: E/AndroidRuntime(18931): at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:8)

error

My question is if your framework is compatible with android 5.x? Thanks a lot.

amartorello avatar Jul 02 '15 14:07 amartorello

I'm targetting API 21 and it is working. What is the NoClassDefFoundError coming from?

hongzhou85 avatar Jul 09 '15 03:07 hongzhou85

i have meet this problem, and my solution is add blow code in the AndroidManifest.xml ” I don't know why ,maybe the wiki will answer this question:

" ActiveAndroid will look through all your files to find your Model classes. This process can be very slow if you have a lot of dependencies. To speed up this process, specify your Model classes explicitely in your AndroidManifest "

https://github.com/pardom/ActiveAndroid/wiki/Creating-your-database-model

Good Luck!

colryzen avatar Sep 01 '15 01:09 colryzen

This might be the issue with android's 65K reference limit.

prashantwosti avatar Oct 17 '15 18:10 prashantwosti