I am writing an Android app that will communicate with the PC. I tried to create 2 packages in a single eclipse project, but this doesn’t seem to work. When i try to debug the PC java application, it crashes with “Cannot connect to VM”. I searched for this, and found suggestions to turn of the Windows Firewall and reboot. This did not work. The crash report
states:
# Internal Error (classFileParser.cpp:3494), pid=4408, tid=4776
# Error: ShouldNotReachHere()
Maybe there is a best practice that I am missing? Should these two similar code units (they share some common classes) be in separate projects, or am I taking a good approach, and just running into some configuration problem?
If you really want to have both projects in one eclipse project, you have to do the following:
now you should be able to run your pc project.
— edit:
regarding your question about best practice. I think you probably should have to separate projects unless your PC project is really small (like only one class)