Erro bd Sqlite android 9

  • Respostas:0
  • AbertoNão stickySem resposta
  • Posts no fórum: 1

09/03/2020, 16:59:38 via Web

Alguem poderia me ajudar to com esse erro ao rodar meu app no android 9

java.lang.RuntimeException: Unable to start activity ComponentInfo{wilissisborges.dicionarioportuguescrioulo/wilissisborges.dicionarioportuguescrioulo.MainActivity}: android.database.sqlite.SQLiteException: no such table: tblWord (code 1 SQLITE_ERROR): , while compiling: Select * From tblWord Where word Like ?
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: android.database.sqlite.SQLiteException: no such table: tblWord (code 1 SQLITE_ERROR): , while compiling: Select * From tblWord Where word Like ?
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:903)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:514)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1408)
at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1347)
at wilissisborges.dicionarioportuguescrioulo.utils.DatabaseHelper.getListWord(DatabaseHelper.java:50)
at wilissisborges.dicionarioportuguescrioulo.MainActivity.onCreate(MainActivity.java:68)
at android.app.Activity.performCreate(Activity.java:7224)
at android.app.Activity.performCreate(Activity.java:7213)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)
... 11 more

Seja o primeiro a responder
Recomendado pelo NextPit