如何使用 NetBeans IDE 在模拟器上调试 Android 应用程序
我最近下载了最新的 NetBeans IDE(适用于 MACOSX)并从 ECLIPSE 环境导入/迁移了一个项目。
一切看起来都运行良好……除了模拟器卡在“等待调试器连接”之外。我尝试“附加调试器...”并将 PORT 值设置为我读过的每个案例(8200、8700、5555 等),但连接被拒绝。
我认为这不是在 NetBeans for Android 中启动调试会话的首选方式。
我缺少什么?
I recently downloaded the latest NetBeans IDE (for MACOSX) and imported/migrated a project over from the ECLIPSE environment.
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.
I am of the opinion that this is not the preferred way to start a debugging session in NetBeans for Android.
What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
各位看过这里的人大家好……
我已经弄清楚发生了什么事。
第一:我未能将这些“次要”活动添加到 Android 清单中。
下一页: 我未能正确编辑“布局”
从原始 ECLIPSE 项目中窃取的 xml 文件。扩展视图的名称是原始项目“遗留下来的”,并且 NetBeans 版本具有不同的 Pkg 名称。
于是,一声大“呸!”以及更大的“Doh!”
Hi to any that have taken a view here...
I have figured out whats been going on.
First: I had failed to add these 'secondary' Activities to the Android Manifest.
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 android 插件,对吗?探索插件站点的论坛可能会有所帮助。
You have the newest Netbeans android plugin, right? Might be helpful to explore the forum at the plugin site..