问题
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?
回答1:
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!"
回答2:
You have the newest Netbeans android plugin, right? Might be helpful to explore the forum at the plugin site..
来源:https://stackoverflow.com/questions/2374813/how-to-debug-android-app-on-emulator-using-netbeans-ide