So I finished tweaking a tutorial called Rain Catcher and I ran the desktop application. It works fine. I then proceeded to run the application using the android emulator the game then crashes.
I set up the project using libGDX's project set-up.
Why won't it run properly on the android emulator even though it runs fine on the desktop application?
I don't know if you can see it but if you zoom you would be able to see it easier.
Answer
If the Android project compiles correctly but is missing classes when run, it may be because ADK r17 (the current version atm) doesn't include the external game project as part of the build. There's an extra step you have to do that's still lacking from most of the existing documentation for project setup. It's described here. Copying from that site, the steps are:
- Click on your Android Project
- Select Properties
- Select Java Build Path
- Select Order and Export
- Check all your references, e.g. the gdx.jar, the gdx-backend-android.jar, your main code project etc.
The pictures on the site are helpful, so go check that out.
No comments:
Post a Comment