[英]can't debug android projects in Eclipse (adt bundle)
I can't debug any android projects on my PC. 我无法在PC上调试任何android项目。 I am using the
adt bundle
version where in both Eclipse and SDK are bundled together. 我使用的是
adt bundle
版本,其中Eclipse和SDK捆绑在一起。 I tried almost all the solutions I found on here like restarting the PC (running Ubuntu), the android device and the adb server
, adding android:debuggable="true"
to the manifest.xml
file, changing the debug port to 8601
but nothing helped. 我尝试了在这里找到的几乎所有解决方案,例如重新启动PC(运行Ubuntu),android设备和
adb server
,将android:debuggable="true"
到manifest.xml
文件中,将调试端口更改为8601
但没有进行任何操作帮助。 I have also tried debugging on another PC with the adt bundle
and couldn't debug on it either. 我也尝试过在另一台装有
adt bundle
PC上调试,也无法在其上调试。 Is there something wrong with the adt bundle that prevents me from debugging or is there some setting in the SDK or Eclipse that I have missed out on? adt捆绑包是否有问题,使我无法调试,或者我错过了SDK或Eclipse中的某些设置?
Edit: 编辑:
The error I get: 我得到的错误:
Launch error: Failed to connect to remote VM. Connection timed out.
Can anyone who has successfully debugged an android app using the adt-bundle
comment on this post so I know it's possible? 使用本文的
adt-bundle
注释成功调试过android应用的人可以知道吗?
Did you turned developers options on in device? 您是否在设备上打开了开发人员选项? see here
看这里
also this may be useful 这也可能有用
for your error connection timed out 为您的错误连接超时
go to Windows->Preferences->Android->DDMS. 转到Windows->首选项-> Android-> DDMS。 Change default port, apply, and restart Eclipse.
更改默认端口,应用并重新启动Eclipse。
if this also does not work 如果这也不起作用
do CTRL + ALT + DELETE and kill all adb.exe processes 执行CTRL + ALT + DELETE并杀死所有adb.exe进程
按照以下步骤重新安装安装程序: http://www.javatpoint.com/how-to-setup-android-for-eclipse-ide
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.