I am just starting to learn Libgdx, and am in the process of importing the 4 projects[desktop, main java game, android, html] into Eclipse Juno. I have not added any lines of code, just trying to get them to run on the different platforms.
It runs fine on the desktop version, but when I tried to run it in the Android emulator I get the error. Cannot find mygdxgame.apk!
I realized that my gen folder is completely empty, there is no R.java for the project. I have tried a number of things to make this work, but none of it is working. I am listing the things I have tried so far, and the hopefully the reason why I am asking this repeatedly asked question.
- Project > Clean
- Package Explorer [right click on my project] > Android Tools > Fix Project Issues
- Deleted gen folder and Project > Clean
- Restarted Eclipse
- Deleted the project and Imported it again
- Set Compiler Compliance Level to 1.6 for both main java game and Android project
- Added a dummy XML to the android project and tried clean, and deleted it
- Unchecked and rechecked Build Automatically
- Checked my target-sdk in project.properties and made sure it is the same Project Properties -> Android and in my Manifest.xml
- [Right click on project] > Properties > Java Build Path > Source tab, Removed mygdxgame/gen folder and then added it again
- Made sure Project Properties > Android > Is Library is unchecked
Nothing has worked so far. My gen folder is still empty and I am unable to run the Android project because of the same error. Cannot find mygdxgame.apk!
What else can I do to fix this? In case this is answered I would appreciate someone giving me a link to the solution, as I have been pouring through SO and Google in general for nearly 2 hours now, with no success.
Regs