首页 > 解决方案 > 我的应用程序在 android studio 3.1.3 中以发布模式等待调试器

问题描述

我是 Kotlin 和 android studio 的业余爱好者。我正在尝试将 facebook 登录集成到我的应用程序中,但最终遇到了障碍。在遵循 facebook login for android integration tutorial 之后,我无法在发布模式下运行该应用程序。我之前确实在调试模式下运行了相同的应用程序进行调试。但是现在我手机上的应用程序也在发布模式下显示“等待调试器”。

我已经完成了以下操作,但没有奏效。

  1. 在发布模式下将 debuggable 设置为 false
  2. 重启亚行
  3. 重启 Android Studio
  4. 重启手机
  5. 重启电脑
  6. 切换 USB 端口
  7. 更新一切
  8. 在我的 android 项目的基本路径中移动密钥库。
  9. 设置 minifyEnabled 假
  10. 尝试检查 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 因为里面有很多文字。

标签: androidandroid-studiokotlinfacebook-loginandroid-debug

解决方案


您可能已在Select app to be debugged手机上添加了您的应用程序。在Settings -> Developer Options -> Select app to be debugged

要解决此问题,请转到选择要调试的应用程序并单击No apps


推荐阅读