Android:ActivityThread.performLaunchActivity错误

Android:ActivityThread.performLaunchActivity错误,第1张

概述每次在调试器中启动程序时,我都会收到ActivityThread.performLaunchActivity(ActivityThread $ActivityRecord,Intent)错误.该程序甚至不会启动!任何帮助将不胜感激!我对这种环境很新.如果您需要更多信息/代码来帮助我,请告诉我们. 这是我的logcat: 06-09 11:16:26.848: ERROR/vold(27): Err 每次在调试器中启动程序时,我都会收到ActivityThread.performlaunchActivity(ActivityThread $ActivityRecord,Intent)错误.该程序甚至不会启动!任何帮助将不胜感激!我对这种环境很新.如果您需要更多信息/代码来帮助我,请告诉我们.

这是我的logcat:

06-09 11:16:26.848: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)06-09 11:16:26.848: ERROR/vold(27): Error bootstrapPing switch '/sys/class/switch/test2' (No such file or directory)06-09 11:16:26.848: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)06-09 11:16:26.848: ERROR/vold(27): Error bootstrapPing switch '/sys/class/switch/test' (No such file or directory)06-09 11:16:37.887: ERROR/MemoryHeapBase(53): error opening /dev/pmem: No such file or directory06-09 11:16:37.887: ERROR/SurfaceFlinger(53): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake06-09 11:16:37.927: ERROR/libEGL(53): Couldn't load <libhgl.so> library (Cannot load library: load_library[984]: library 'libhgl.so' not found)06-09 11:16:38.407: ERROR/libEGL(64): Couldn't load <libhgl.so> library (Cannot load library: load_library[984]: library 'libhgl.so' not found)06-09 11:16:41.358: ERROR/BatteryService(53): Could not open '/sys/class/power_supply/usb/online'06-09 11:16:41.367: ERROR/BatteryService(53): Could not open '/sys/class/power_supply/battery/batt_vol'06-09 11:16:41.367: ERROR/BatteryService(53): Could not open '/sys/class/power_supply/battery/batt_temp'06-09 11:16:41.667: ERROR/EventHub(53): Could not get driver version for /dev/input/mouse0,Not a typewriter06-09 11:16:41.667: ERROR/EventHub(53): Could not get driver version for /dev/input/mice,Not a typewriter06-09 11:16:41.797: ERROR/System(53): Failure starting core service06-09 11:16:41.797: ERROR/System(53): java.lang.SecurityException06-09 11:16:41.797: ERROR/System(53):     at androID.os.BinderProxy.transact(Native Method)06-09 11:16:41.797: ERROR/System(53):     at androID.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)06-09 11:16:41.797: ERROR/System(53):     at androID.os.ServiceManager.addService(ServiceManager.java:72)06-09 11:16:41.797: ERROR/System(53):     at com.androID.server.ServerThread.run(SystemServer.java:162)06-09 11:16:41.797: ERROR/AndroIDRuntime(53): Crash logging skipped,no checkin service06-09 11:16:42.777: ERROR/LockPatternKeyguardVIEw(53): Failed to bind to GLS while checking for account06-09 11:16:46.557: ERROR/ActivityThread(111): Failed to find provIDer info for com.Google.settings06-09 11:16:46.577: ERROR/ActivityThread(111): Failed to find provIDer info for com.Google.settings 06-09 11:16:49.087: ERROR/ApplicationContext(53): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml06-09 11:16:51.146: ERROR/ActivityThread(108): Failed to find provIDer info for androID.server.checkin06-09 11:16:54.266: ERROR/ActivityThread(108): Failed to find provIDer info for androID.server.checkin06-09 11:16:54.416: ERROR/ActivityThread(108): Failed to find provIDer info for androID.server.checkin06-09 11:16:56.336: ERROR/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound06-09 11:16:56.356: ERROR/MediaPlayer(53): Unable to to create media player06-09 11:16:56.637: ERROR/AndroIDRuntime(201): Uncaught handler: thread main exiting due to uncaught exception06-09 11:16:56.757: ERROR/AndroIDRuntime(201): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.svgeeks.kIDneytest/com.svgeeks.kIDneytest.KIDneyTest}: java.lang.classCastException: androID.Widget.EditText06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2401)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.ActivityThread.access00(ActivityThread.java:116)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.os.Handler.dispatchMessage(Handler.java:99)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.os.Looper.loop(Looper.java:123)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.ActivityThread.main(ActivityThread.java:4203)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at java.lang.reflect.Method.invokeNative(Native Method)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at java.lang.reflect.Method.invoke(Method.java:521)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:549)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at dalvik.system.NativeStart.main(Native Method)06-09 11:16:56.757: ERROR/AndroIDRuntime(201): Caused by: java.lang.classCastException: androID.Widget.EditText06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at com.svgeeks.kIDneytest.KIDneyTest.onCreate(KIDneyTest.java:57)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2364)06-09 11:16:56.757: ERROR/AndroIDRuntime(201):     ... 11 more06-09 11:16:56.876: ERROR/dalvikvm(201): Unable to open stack trace file '/data/anr/traces.txt': Permission denIEd
解决方法 你的问题出现在KIDneyTest的第57行.

错误堆栈抱怨ClassCastException,当程序试图将对象强制转换为与其不兼容的类型时抛出.

看起来你正在尝试将EditText转换为不是它的东西.

编辑:解码错误堆栈的好提示,查找显示错误的行:此行将为您提供错误原因,下面的行将显示错误发生的位置,并包含行参考,以便您可以很容易找到问题.

总结

以上是内存溢出为你收集整理的Android:ActivityThread.performLaunchActivity错误全部内容,希望文章能够帮你解决Android:ActivityThread.performLaunchActivity错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1123016.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存