简体   繁体   English

无法从 Android Studio 在调试模式下运行应用程序

[英]Cannot run app in debug mode from Android Studio

I cannot run my app in debug mode in Android Studio.我无法在 Android Studio 中以调试模式运行我的应用程序。 Sometimes it says the problem is with localhost:8601 , and other times I get the output below:有时它说问题出在localhost:8601 ,有时我得到以下输出:

Client not ready yet.
Client not ready yet.
Client not ready yet.
Client not ready yet.
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.test.myapp/.activity.SplashActivity }

I finally solved the problem.我终于解决了这个问题。 my phone setting should set on MTP mode and nothing else.我的手机设置应该设置为MTP模式,没有别的。 debugger connects to my phone after this change.此更改后,调试器连接到我的手机。

I had same issue and fixed now.我有同样的问题,现在解决了。 Here is what i did which might help u这是我所做的,可能对你有帮助

  1. Confirm the exact problem, Is it that debugger is not able to connect or breakpoints not hit.确认确切的问题,是调试器无法连接还是断点未命中。 TO confirm this put breakpoint in MainActivity.在 MainActivity 中确认这个放置断点。 Also application would be waiting for debugger, just check if it stopped waiting or any console logs.应用程序也将等待调试器,只需检查它是否停止等待或任何控制台日志。 Also just check if debugger shows pause button也只需检查调试器是否显示暂停按钮

  2. Check ur gradle config and make sure apk has symbols.检查你的 gradle 配置并确保 apk 有符号。 (Debug release) (调试版本)

In my case issue was 1st and got it resolved.在我的情况下,问题是第一个问题并得到了解决。 Hope this might help else pls ignore希望这可能有助于其他人请忽略

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在没有广告的调试模式下运行 android studio 应用程序? - Run android studio app in debug mode without ads? Android App可在Debug模式下运行,但不能在Run模式下运行 - Android App works in Debug Mode, but not in Run mode 在Android Studio中以调试模式更改应用的UID - change UID of app in debug mode in Android studio Android App在DEBUG模式下运作良好,但在RUN模式下却无法运作 - Android App working well with DEBUG mode, but not with RUN mode Android Studio:运行/调试应用程序的发布版本 - Android Studio: run/debug release version of app 我的android应用程序在android studio中以调试模式正常工作,但是当我从Google Playstore安装时无法正常工作 - My android app is working properly in debug mode in android studio but not working when i install from google playstore 如何使用 Android Studio 在发布模式下调试 Android 应用程序 - How to debug the Android App in release mode using Android studio Android Studio在调试模式下仍使用签名配置“ release”运行 - Android studio run in debug mode still using signing config 'release' 如何在Android Studio中以调试模式运行AndroidTestCases? - How can I run my AndroidTestCases in debug mode in Android Studio? 如何在 android studio 3.3.1 中以调试模式运行应用程序? - How to run an application in debug mode inside android studio 3.3.1?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM