Android Studio Debugger 进程已完成,退出代码为 127 [英] Android Studio Debugger process finished with exit code 127

查看:61
本文介绍了Android Studio Debugger 进程已完成,退出代码为 127的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近升级到 Android Studio 4.2.1

Recently upgraded to Android Studio 4.2.1

我可以成功启动我的应用程序,但是当我尝试附加调试器时,我在问题标题中收到错误消息(请参见下面的屏幕截图).

I can launch my app successfully but when I try to attach the debugger I get the error in the question title (see screenshot below).

应用程序只是卡在等待调试器"上;屏幕.

The app just gets stuck on the "Waiting For Debugger" screen.

升级前一切正常.

这是调试日志的输出

$ adb shell am start -n "com.*.*/com.*.*.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.*.* | com.*.*.test
Waiting for application to come online: com.*.* | com.*.*.test
Connected to process 9869 on device 'amazon-kfmuwi-G0W0X8089256FRU1'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ActivityThread: Application com.*.* is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
Connecting to com.*.*
Now Launching Native Debug Session
com.intellij.execution.ExecutionFinishedException: Execution finished

Process finished with exit code 0

在logcat中我也看到

In logcat I also see

2021-05-19 12:55:32.855 10394-10394/?E/azon.kindle.cm:未启动调试器,因为进程无法加载 jdwp 代理.

我试过:重启安卓设备重启开发设备使 Android Studio 无效并重新启动重新安装 Android Studio

I have tried: Restarting Android device Restarting development device Invalidating and Restarting Android Studio Reinstalling Android Studio

我的系统正在运行 Pop!_OS 20.10

My system is running Pop!_OS 20.10

调试错误

推荐答案

我通过安装 'libncurses5' 和 'ia32-libs' 包解决了这个问题

I've solved that by installing 'libncurses5' and 'ia32-libs' packages

这是一个已知问题,在 android 开发者的官方页面上提供.这是链接 https://developer.android.com/studio/已知问题?hl=de#native_debugger_crashes_with_debugger_process_finished_with_exit_code_127

This is a known issue and is provided on the android developer's official page. Here is the link https://developer.android.com/studio/known-issues?hl=de#native_debugger_crashes_with_debugger_process_finished_with_exit_code_127

事实证明这是 Linux 特定的问题,因为 Linux 使用升级的libncurses6",而 android studio 使用运行调试器所需的libncurses5".

It turns out it's a Linux-specific issue and is because Linux uses upgraded 'libncurses6' and android studio uses 'libncurses5' required to run the debugger.

这篇关于Android Studio Debugger 进程已完成,退出代码为 127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆