简体   繁体   中英

Android SDK r18 appears to have broken ORMLite

I am using ormlite v4.35 and I just had to update my android tools to r18 in eclipse, because the IDE would not build my project until I upgraded the tools. After the upgrade the following line throws an error:

mDbHelper = OpenHelperManager.getHelper(this, DatabaseHelper.class);

The exception is a NoClassDefFoundError

I went to the ormlite website and saw there was a newer version (4.40) downloaded and replaced the reference with the newer version, unfortunately that did not fix the problem. Has anyone run into the issue and resolved it?

The exception is a NoClassDefFoundError

I think your problem is around the new behavior of the libs folder with Android r17 tools . You must have your ORMLite jars in the libs folder. This is just the -android and -core class jars -- not the javadoc or source jars which I just put at the root of the project.

Once you move the jars there, the Android builders should see your classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM