gpt4 book ai didi

android - 我在数据库插入期间遇到错误

转载 作者:行者123 更新时间:2023-11-29 18:24:19 25 4
gpt4 key购买 nike

当我要在数据库中插入数据时,我发现了以下错误请给我解决方案

07-26 12:24:38.275: ERROR/Zygote(32): setreuid() failed. errno: 2
07-26 12:24:45.445: ERROR/Zygote(32): setreuid() failed. errno: 17
07-26 12:24:46.705: ERROR/BatteryService(58): usbOnlinePath not found
07-26 12:24:46.705: ERROR/BatteryService(58): batteryVoltagePath not found
07-26 12:24:46.705: ERROR/BatteryService(58): batteryTemperaturePath not found
07-26 12:24:46.757: ERROR/SurfaceFlinger(58): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-26 12:24:52.576: ERROR/EventHub(58): could not get driver version for /dev/input/mouse0, Not a typewriter
07-26 12:24:52.576: ERROR/EventHub(58): could not get driver version for /dev/input/mice, Not a typewriter
07-26 12:24:52.727: ERROR/System(58): Failure starting core service
07-26 12:24:52.727: ERROR/System(58): java.lang.SecurityException
07-26 12:24:52.727: ERROR/System(58): at android.os.BinderProxy.transact(Native Method)
07-26 12:24:52.727: ERROR/System(58): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-26 12:24:52.727: ERROR/System(58): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-26 12:24:52.727: ERROR/System(58): at com.android.server.ServerThread.run(SystemServer.java:184)
07-26 12:24:53.727: ERROR/SoundPool(58): error loading /system/media/audio/ui/Effect_Tick.ogg
07-26 12:24:53.737: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressStandard.ogg
07-26 12:24:53.737: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-26 12:24:53.737: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressDelete.ogg
07-26 12:24:53.746: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressReturn.ogg
07-26 12:24:56.527: ERROR/ThrottleService(58): Could not open GPS configuration file /etc/gps.conf
07-26 12:24:57.955: ERROR/logwrapper(142): executing /system/bin/tc failed: No such file or directory
07-26 12:24:58.026: ERROR/logwrapper(144): executing /system/bin/tc failed: No such file or directory
07-26 12:24:58.096: ERROR/logwrapper(146): executing /system/bin/tc failed: No such file or directory
07-26 12:25:10.246: ERROR/HierarchicalStateMachine(58): TetherMaster - unhandledMessage: msg.what=3
07-26 12:25:41.245: ERROR/AndroidRuntime(274): FATAL EXCEPTION: main
07-26 12:25:41.245: ERROR/AndroidRuntime(274): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dataApplication/com.dataApplication.Edit}: java.lang.NullPointerException
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.os.Looper.loop(Looper.java:123)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at java.lang.reflect.Method.invokeNative(Native Method)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at java.lang.reflect.Method.invoke(Method.java:521)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at dalvik.system.NativeStart.main(Native Method)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): Caused by: java.lang.NullPointerException
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at com.dataApplication.Edit.onCreate(Edit.java:87)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-26 12:25:41.245: ERROR/AndroidRuntime(274): ... 11 more
07-26 12:26:54.735: ERROR/AndroidRuntime(285): FATAL EXCEPTION: main
07-26 12:26:54.735: ERROR/AndroidRuntime(285): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dataApplication/com.dataApplication.Edit}: java.lang.NullPointerException
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.os.Looper.loop(Looper.java:123)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at java.lang.reflect.Method.invokeNative(Native Method)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at java.lang.reflect.Method.invoke(Method.java:521)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at dalvik.system.NativeStart.main(Native Method)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): Caused by: java.lang.NullPointerException
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at com.dataApplication.Edit.onCreate(Edit.java:87)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-26 12:26:54.735: ERROR/AndroidRuntime(285): ... 11 more

最佳答案

我认为你得到的错误是:

07-26 12:25:41.245: ERROR/AndroidRuntime(274): Caused by: java.lang.NullPointerException
07-26 12:25:41.245: ERROR/AndroidRuntime(274): at com.dataApplication.Edit.onCreate(Edit.java:87)

您正在访问的对象在您的 Edit 类的第 87 行不存在。

关于android - 我在数据库插入期间遇到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3332870/

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