libgdx gradle - forgot to make android project -


I set up my libgdx project with HTML5 and desktop, but decided to add Android support later. How do I add an Android project?

I am afraid that if I use the setup UI it overwrites my code.

Use the setup-UI once and with the same parameter as if you initially created the project, but use the other destination folder. Then recreate them all again.

When you are done with that, copy the android folder to your original project. You will need to copy some single files in the root folder. They are settings.gradle and build.gradle . If you have manually changed your build.gradle file, you should only copy it to the original file instead of replacing it for the Android project only.

Then you - Import your project into its IDE once more.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -