java.lang.NoClassDefFoundError:SQLiteOpenHelper,SQLite DB在Android 4.X上不起作用

时间:2016-11-20 20:12:31

标签: java android sqlite android-sqlite sqliteopenhelper

我的应用程序适用于Android 5.0+,但我在Android 4.4(Galaxy S4 Mini)上出错。

java.lang.NoClassDefFoundError: de.lernapp.datenbank.FragenTabelle
at de.lernapp.datenbank.LernAppDB.onCreate(LernAppDB.java:41)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:252)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:188)
at de.lernapp.lernApp.ErsteAnmeldungActivity.onCreate(ErsteAnmeldungActivity.java:81)
at android.app.Activity.performCreate(Activity.java:5458)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470)
at android.app.ActivityThread.access$900(ActivityThread.java:174)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5593)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)

有没有人解决这个问题? 谢谢!

0 个答案:

没有答案