SQLiteDatabase getWritableDatabase() { throw new RuntimeException(“Stub!”); }

前端 未结 1 1335
一整个雨季
一整个雨季 2020-12-21 18:16

I try to run \"getItem()\" method

public class PhoneDal extends SQLiteOpenHelper {

// Database Version
private static final int DATABASE         


        
相关标签:
1条回答
  • 2020-12-21 18:48

    You are looking at a decompiled version of the android.jar file, not the actual Android code that runs on a device or emulator.

    With respect to the actual problem, my guess is that you changed your database schema without changing the schema version (DATABASE_VERSION in your code). Either increment DATABASE_VERSION and implement onUpdate(), or uninstall and reinstall your app to get rid of your old database.

    0 讨论(0)
提交回复
热议问题