我的应用在android studio 3.1.3中等待发布模式下的调试器 [英] My App waiting for debugger in release mode in android studio 3.1.3
问题描述
我是Kotlin和android studio的业余爱好者.我正在尝试将Facebook登录信息集成到我的应用中,但最终遇到了障碍.跟随Facebook登录以获取android集成教程后,我无法在发布模式下运行该应用程序.我以前确实在调试模式下运行了相同的应用程序以进行调试.但是现在我手机上的应用在发布模式下也显示"Waiting for Debugger".
I am an amateur in Kotlin and android studio. I am trying to integrate the facebook login to my app but end up at a roadblock. After following the facebook login for android integration tutorial, I am unable to run the app in release mode. I did previously run the same app in debug mode for debugging. But now the app on my phone says "Waiting for Debugger" in release mode too.
我已经完成了以下操作,但没有成功.
I have done the following already and it has not worked.
- 在发布模式下将debugableable设置为false
- 重新启动ADB
- 重新启动Android Studio
- 重新启动手机
- 重启计算机
- 切换USB端口
- 更新所有内容
- 将密钥库移动到我的android项目的基本路径中.
- 将minifyEnabled设置为false
- 尝试检查BuildConfig.BUILD_TYPE.equals("debug")
- Set debuggable to false in release mode
- Restart ADB
- Restart Android Studio
- Restart phone
- Restart Computer
- Switch USB port
- Update everything
- moving the keystore inside the base path of my android project.
- set minifyEnabled false
- Tried Checking BuildConfig.BUILD_TYPE.equals("debug")
在显示的Run
中,
07/24 12:11:43: Launching app
$ adb shell am start -n "com.example.vishwa.imaginators/com.example.vishwa.imaginators.SplashscreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 16495 on device xiaomi-redmi_note_3-57c506ac
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.example.vishwa.imaginators is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
我没有挂起logcat
,因为里面有很多文字.
I did not put up the logcat
because it's got tons of text in it.
推荐答案
您可能已在手机的Select app to be debugged
中添加了您的应用程序.在Settings -> Developer Options -> Select app to be debugged
You might have added your app in Select app to be debugged
on your phone. In Settings -> Developer Options -> Select app to be debugged
要解决此问题,请转到选择要调试的应用,然后点击No apps
To resolve this, go to Select app to be debugged and click on No apps
这篇关于我的应用在android studio 3.1.3中等待发布模式下的调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!