相关疑难解决方法(0)

Android Studio 调试器意外停止

我无法调试我的应用程序,因为在设置断点和调试器停止之后,它会在两三秒后突然停止并且应用程序无缘无故退出。

我已经尝试在不同的位置设置断点以确保没有其他后台进程干扰它,例如在启动活动的 onCreate 开始时,但同样发生,调试器按预期停止,几秒钟后应用程序退出并调试会话意外结束。

我已经尝试将 Android Studio 和 Gradle 更新到最新版本(我的 AS 是 3.6.1)和 Gradle 5.6.4(插件版本是 3.6.1),但无济于事。还尝试卸载/重新安装应用程序也无济于事,最后我在 Android Studio 中尝试了“使缓存无效并重新启动”选项,但它都不起作用。

我无法调试,也不知道还能尝试/做什么。

我的手机是华为 Mate 20 Lite,我也试过重启手机,但没有成功。

这是调试器停止和应用程序退出后的“Logcat”(应用程序数字为 com.mycompany.myapp):

2020-03-06 19:20:39.719 1408-1432/? E/WindowManager: icon is null!!
2020-03-06 19:20:39.722 1408-1432/? E/WindowManager: icon is null!!
2020-03-06 19:20:39.724 1408-1432/? E/WindowManager: icon is null!!
2020-03-06 19:20:39.777 2462-5966/? E/HwNaturalBase: [Binder:2462_10]: clearDataByOwner ignore: Found null values with the given ownerPkgName is[com.mycompany.myapp].
2020-03-06 19:20:39.778 2334-4531/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null
2020-03-06 19:20:39.809 847-861/? E/AwareLog: iawared: GetFileContent open /proc/14267/task/14277/cpuset fail errno(2)! …
Run Code Online (Sandbox Code Playgroud)

debugging android android-studio

10
推荐指数
1
解决办法
3803
查看次数

标签 统计

android ×1

android-studio ×1

debugging ×1