我有一个Android琐事应用程序。有些玩家在点击“新游戏”时会出错。 对我来说它工作得很好,因为它也适用于大多数玩家。
大多数情况下,这个问题出现在galaxy设备上,但是同一版本的设备相同,一切都适合他们。
这是错误
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sportrivia.hapoelbeershevatrivia/com.dimikit.trivia.SingleplayerActivity}: android.database.sqlite.SQLiteException: no such column: BannerAdImageURL (code 1): , while compiling: SELECT _id, RemoteServer, ChatServer, CommonBackground, SyncFrequencyDays, NumberOfLevels, BackgroundMusic, BannerAdImageURL, BannerAdLinkURL FROM settings
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2092)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
at android.app.ActivityThread.access$700(ActivityThread.java:134)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: no such column: BannerAdImageURL (code 1): , while compiling: SELECT _id, RemoteServer, ChatServer, CommonBackground, SyncFrequencyDays, NumberOfLevels, BackgroundMusic, BannerAdImageURL, BannerAdLinkURL FROM settings
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1013)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:624)
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:1314)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1161)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1032)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1200)
at com.dimikit.trivia.utilities.settings.SettingsDataSource.getAllSettings(SettingsDataSource.java:99)
at com.dimikit.trivia.SingleplayerActivity.initializeAllData(SingleplayerActivity.java:322)
at com.dimikit.trivia.SingleplayerActivity.onCreate(SingleplayerActivity.java:218)
at android.app.Activity.performCreate(Activity.java:5047)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
... 11 more
你怎么知道这是什么问题?
感谢
答案 0 :(得分:0)
检查是否应该进行某些设置&#34;设置&#34;应用程序启动时的表格。似乎在用户到达新游戏屏幕之前必须进行的某些配置过程不会触发。
答案 1 :(得分:0)
根据您的例外日志,您尝试从自定义表settings
中读取一些不包含BannerAdImageURL
列的设置。