libgdx / gdx-liftoff

A modern setup tool for libGDX Gradle projects
Apache License 2.0
542 stars 50 forks source link

Cannot import generated project into Intellij IDEA #197

Closed TheEntropyShard closed 2 months ago

TheEntropyShard commented 2 months ago

I created a project with core and android targets. My IntelliJ just dont want to import android subproject:

image

Am I supposed to open the project in Android Studio?

Frosty-J commented 2 months ago

Android Studio is an easy solution, sure. If you do not have the Android plugin installed (File -> Settings -> Plugins) you can try that to get Android support in IDEA.

tommyettinger commented 2 months ago

Yeah, you do need Android tools installed to do Android stuff, and Android Studio is probably the best way to get all the tools you might need. Certain (rare) update-related warnings will only be solvable with Android Studio, though "warning" is maybe over-stating it since they're issued by the IDE or IDE plugin, not the compiler. If you continue to have issues after getting the Android tools available, try marking the Android main folder (android/src/main/) as a sources root, by right-clicking the folder in IDEA and choosing "Mark Directory As" -> "Sources Root".

TheEntropyShard commented 2 months ago

Thank you all for your answers, yeah, I imported the project into Android Studio successfully.