如何使用NetBeans IDE调试模拟器上的Android应用 [英] How To debug Android app on Emulator using NetBeans IDE
问题描述
我最近下载(用于MACOSX)最新的NetBeans IDE和进口/从Eclipse环境迁移的项目了。
I recently downloaded the latest NetBeans IDE (for MACOSX) and imported/migrated a project over from the ECLIPSE environment.
一切看起来,和行之有效的...只是仿真器卡等待调试器附加。我试过安装调试......,并设置端口值的每一个情况下,我读过有关(8200,8700,5555等),但连接被拒绝。
Everything looks, and works well... except that EMULATOR gets stuck "waiting for the debugger to attach." I tried "Attaching Debugger..." and set the PORT value to every case I've ever read about (8200, 8700, 5555, etc.) but the connection is refused.
我认为这不是preferred的方式开始在NetBeans调试会话为Android。
I am of the opinion that this is not the preferred way to start a debugging session in NetBeans for Android.
我是什么失踪?
推荐答案
喜来已采取此一观点的...
Hi to any that have taken a view here...
我想通了什么一直在进行。
I have figured out whats been going on.
第一:我未能将这些次要活动添加到Android清单。
First: I had failed to add these 'secondary' Activities to the Android Manifest.
下一页:我未能正确地编辑布局
从原来的Eclipse项目被盗的XML文件。从最初的项目是遗留的扩展视图的名称和NetBeans版本有不同的PKG名称。
Next: I had failed to correctly edit a 'layout' xml file stolen from the original ECLIPSE project. The name of an Extended VIEW was 'left over' from the original project and the NetBeans version has a different Pkg name.
所以,一个大的咄!而一个更大的卫生署!
So, a big "Duh!" and an even Bigger "Doh!"
这篇关于如何使用NetBeans IDE调试模拟器上的Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!