如何使用 NetBeans IDE 在模拟器上调试 Android 应用程序

发布于 2024-08-24 03:20:42 字数 230 浏览 5 评论 0原文

我最近下载了最新的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

等待我真够勒 2024-08-31 03:20:42

各位看过这里的人大家好……

我已经弄清楚发生了什么事。

第一:我未能将这些“次要”活动添加到 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!"

十年不长 2024-08-31 03:20:42

您有最新的 Netbeans android 插件,对吗?探索插件站点的论坛可能会有所帮助。

You have the newest Netbeans android plugin, right? Might be helpful to explore the forum at the plugin site..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文