Android的工作室:在设备调试应用程序
我有调试的机器人工作室的困难。在尝试推出在调试模式下设备显示警报应用程序等待调试器的标题,永远不会消失。另外我有机器人:可调试=真正的
在我的清单文件和恍如设备连接正确,因为我可以简单地运行,没有任何问题,我的应用程序。我做错了什么?
I have difficulties with with debugging at Android Studio. After trying to launch application in debug mode device show alert with "Waiting For Debugger" title that never disappear. Also I have android:debuggable="true"
in my manifest file and seems like device connected correctly, because I can simply run my application without any problem. What I'm doing wrong?
删除机器人:可调试=真正的
,因为当你运行/调试中的Android Studio中的应用与一个调试证书签名,以便设置并不是强制性的。
Remove android:debuggable="true"
, because when you run/debug an application in Android Studio is signed with a debug certificate so that setting is not mandatory.
然后,从控制台检查设备是否正确连接与 ADB设备
。你应该看到它上市。
Then check from console if the device is correctly attached with an adb devices
. You should see it listed.
然后尝试以这种方式:
1 - 接近Android的工作室,你已经打开的任何其他的IDE(也许你已经Eclipse还跑?),并在仿真器实例;
1 - close Android Studio and any other IDE you have opened (maybe you have Eclipse also running?) and emulator instances;
2 - 从电脑中删除USB连接线;
2 - remove USB cable from PC;
3 - 运行 ADB杀死服务器
从控制台;
3 - run adb kill-server
from console;
4 - 开放的Android工作室;
4 - open Android Studio;
5 - 点击运行/调试;
5 - click on run/debug;
6 - 当窗口来选择设备时,您的设备连接到USB和USB到您的计算机;
6 - when the window to select the device appears, attach your device to USB and USB to your computer;