我有一个完整的应用程序...我重命名了它的包名...并尝试运行但是在显示第一页后它会崩溃..
这是我的logcat:
815-2815/com.Bubbles E/SQLiteLog﹕ (1) no such table: centers
08-06 14:12:22.164 2815-2815/com.Bubbles D/AndroidRuntime﹕ Shutting down VM
08-06 14:12:22.165 2815-2815/com.Bubbles E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.Bubbles, PID: 2815
android.database.sqlite.SQLiteException: no such table: centers (code 1): , while compiling: SELECT * FROM centers where centername='Delhi'
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1316)
at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255)
at com.Bubbles.database.DataBaseHelper.getCityCode(DataBaseHelper.java:413)
at com.Bubbles.Login.GetCityCode(Login.java:233)
at com.Bubbles.Login.Insertvalues(Login.java:175)
at com.Bubbles.Login.access$400(Login.java:26)
at com.Bubbles.Login$3.onClick(Login.java:144)
at android.view.View.performClick(View.java:4780)
at android.view.View$PerformClick.run(View.java:19866)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
等待帮助..提前谢谢
答案 0 :(得分:2)
你做了更多的事情而不是包重命名,因为真正的原因是:
android.database.sqlite.SQLiteException: no such table: centers