Reputation: 6743
I'm trying to make an Android app using libGDX but I'm stuck at the setup. I've setup the project using the libGDX Setup App.
There I specify what I want to use and I click Generate.
Then I open IntelliJ and import the build.grade file just like the Setup App tells me. This gives me all the files I want and I try to add an Android Application configuration. I select the android module in the list but this gives me an error saying
Default Activity not found.
If I then switch from Launch default Activity to Launch and specify my own, then I can't choose the one I want, android/src/com/my_project/android/AndroidLauncher.java.
The libGDX wiki says
Android: A configuration for the Android project should be automatically created on project import. As such, you only have to select the configuration and run it!
What am I missing?
Upvotes: 2
Views: 1492
Reputation: 39225
You can just have it deploy to the emulator/device by choosing Do not launch Activity. Then you can just launch it from the app icon.
Upvotes: 1
Reputation: 9162
With latest libgdx and Intellij Idea 13.x I was unable to configure a project automatically.
After tracing the problem, it seems that something was wrong with the gradle version Intellij Idea is using. I tried to resolve that by updating gradle and altering the PATH variable, but that didn't help.
I ended up manually importing the module into the project and building the project using gradlew.
So now everything "kinda works" when building from command line.
Upvotes: 0