android - 我的应用程序在 android studio 3.1.3 中以发布模式等待调试器
问题描述
我是 Kotlin 和 android studio 的业余爱好者。我正在尝试将 facebook 登录集成到我的应用程序中,但最终遇到了障碍。在遵循 facebook login for android integration tutorial 之后,我无法在发布模式下运行该应用程序。我之前确实在调试模式下运行了相同的应用程序进行调试。但是现在我手机上的应用程序也在发布模式下显示“等待调试器”。
我已经完成了以下操作,但没有奏效。
- 在发布模式下将 debuggable 设置为 false
- 重启亚行
- 重启 Android Studio
- 重启手机
- 重启电脑
- 切换 USB 端口
- 更新一切
- 在我的 android 项目的基本路径中移动密钥库。
- 设置 minifyEnabled 假
- 尝试检查 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
因为里面有很多文字。
解决方案
您可能已在Select app to be debugged
手机上添加了您的应用程序。在Settings -> Developer Options -> Select app to be debugged
要解决此问题,请转到选择要调试的应用程序并单击No apps
推荐阅读
- java - WebDriverException:未知错误:无法将窗口状态更改为最大化,当前状态对于 MacOSX 上的 ChromeDriver v2.43 和 Chrome 70 是正常的
- ruby-on-rails - 在 Rails5.2.1 中上传文件的最佳方式
- python - 如何使用 df.rename?
- python - 如何解析特定的句子?
- spring-boot - Spring Boot 多种输入类型的一次请求映射
- javascript - 我收到“错误:eslint 因错误而终止。[object Object] using Brackets IDE
- javascript - JavaScript - 计算两个日期之间的经过时间?
- angular - Angular 4+将字符串从一个对话框传递到另一个
- hadoop - Hive:如何在不使用科学计数法的情况下显示和存储 20 位整数?
- sql - 如何在 SQL Server Management Studio 中创建模板以检索数据并根据要求隔离数据?