我是Kotlin和android studio的业余爱好者。我试图将Facebook登录信息集成到我的应用中,但最终遇到了障碍。跟随Facebook登录Android集成教程后,我无法在发布模式下运行该应用。我以前确实在调试模式下运行了相同的应用程序以进行调试。但是现在我手机上的应用在发布模式下也显示“正在等待调试器”。
我已经完成了以下操作,但没有成功。
在if (String.IsNullOrEmpty(e.Label))
{
e.Cancel = true;
e.Node.BeginEdit();
return;
}
中显示,
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
,因为其中有很多文字。
答案 0 :(得分:2)
您可能已在手机的Select app to be debugged
中添加了您的应用。在Settings -> Developer Options -> Select app to be debugged
要解决此问题,请转到选择要调试的应用,然后点击No apps
答案 1 :(得分:1)
重新启动android studio,然后检查(如果未解决)在某些机器/项目上,调试器不会自动附加,因此您需要手动附加。
(工作室菜单->运行->将调试器附加到Android进程)
确保在发布模式下将debuggable设置为true
def destroy(self):
self.frame_buttons.pack_forget()
self.update()
tk.Tk.destroy(self)
答案 2 :(得分:0)
我在手机上遇到这个问题,一直在等待调试器,我重新启动了手机并解决了问题