gpt4 book ai didi

javascript - 将异常写入包裹

转载 作者:行者123 更新时间:2023-11-30 03:33:19 25 4
gpt4 key购买 nike

我有访问 android 的日历 api 并在 android 日历中创建事件的 javascript 代码,它在 android 2.3 gingerbread 中工作正常但在 android 4.0 及更高版本的设备中不起作用,我没有访问日历 api 的 javascript 代码但是当我调试时,它显示了以下错误日志

06-11 16:30:01.134: E/SQLiteLog(14281): (1) no such column: selected
06-11 16:30:01.134: E/DatabaseUtils(14281): Writing exception to parcel
06-11 16:30:01.134: E/DatabaseUtils(14281): android.database.sqlite.SQLiteException: no such column: selected (code 1): , while compiling: SELECT _id, name FROM Calendars WHERE (selected=1)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:882)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:493)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:65)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1370)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:421)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:354)
06-11 16:30:01.134: E/DatabaseUtils(14281): at com.android.providers.calendar.CalendarProvider2.query(CalendarProvider2.java:1211)
06-11 16:30:01.134: E/DatabaseUtils(14281): at com.android.providers.calendar.CalendarProvider2.query(CalendarProvider2.java:1180)
06-11 16:30:01.134: E/DatabaseUtils(14281): at com.android.providers.calendar.HtcCalendarProvider.query(HtcCalendarProvider.java:127)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.content.ContentProvider.query(ContentProvider.java:673)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.content.ContentProvider$Transport.query(ContentProvider.java:210)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:143)
06-11 16:30:01.134: E/DatabaseUtils(14281): at android.os.Binder.execTransact(Binder.java:367)
06-11 16:30:01.134: E/DatabaseUtils(14281): at dalvik.system.NativeStart.run(Native Method)
06-11 16:30:01.139: W/webview_proxy(18685): java.lang.Throwable: Warning: A WebView method was called on thread 'WebViewCoreThread'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebView.checkThread(WebView.java:1916)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebView.loadUrl(WebView.java:786)
06-11 16:30:01.139: W/webview_proxy(18685): at com.bonzai.view.BonzaiAdCore.injectJavaScript(BonzaiAdCore.java:2205)
06-11 16:30:01.139: W/webview_proxy(18685): at com.bonzai.ormma.OrmmaUtilityController.createEvent(OrmmaUtilityController.java:219)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewCore.nativeMouseClick(Native Method)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewCore.nativeMouseClick(Native Method)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewCore.access$8100(WebViewCore.java:66)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewCore$EventHub.dispatchWebKitEvent(WebViewCore.java:2122)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewInputDispatcher.dispatchWebKitEvent(WebViewInputDispatcher.java:738)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewInputDispatcher.dispatchWebKitEvents(WebViewInputDispatcher.java:670)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewInputDispatcher.access$800(WebViewInputDispatcher.java:78)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewInputDispatcher$WebKitHandler.handleMessage(WebViewInputDispatcher.java:1237)
06-11 16:30:01.139: W/webview_proxy(18685): at android.os.Handler.dispatchMessage(Handler.java:99)
06-11 16:30:01.139: W/webview_proxy(18685): at android.os.Looper.loop(Looper.java:155)
06-11 16:30:01.139: W/webview_proxy(18685): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:851)
06-11 16:30:01.139: W/webview_proxy(18685): at java.lang.Thread.run(Thread.java:864)

最佳答案

Calendars Api 已在 Android 4.0 (ICE_CREAM_SANDWICH) 中升级。我认为升级会在您的应用程序中造成问题。这里有一些Calender Api的链接,可能对你有帮助。

http://developer.android.com/about/versions/android-4.0.html#api http://developer.android.com/guide/topics/providers/calendar-provider.html#overview http://developer.android.com/sdk/api_diff/14/changes.html

关于javascript - 将异常写入包裹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17043376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com