I used libGDX for an longer time and now after an reinstallation I want to use it with Gradle.
I downloaded the setup.jar and created an project with it like described here. I imported that into IntelliJ and setted for the core Package the dependency to graddle_wrapper and for the 2nd Package "desktop" to core. I run build.gradle, without problems.
But still, IntelliJ is not able to recognise the libGDX Packages - they are red.
What do I have todo else in order to get libGDX running? (Or any other Project with Gradle)
Import a project from an external model Launch IntelliJ IDEA. If the Welcome screen opens, press Ctrl+Shift+A , type project from existing sources , and click the Import project from existing sources action in the popup. Otherwise, from the main menu, select File | New | Project from Existing Sources.
In the Gradle tool window, right-click your main project and from the context menu select Composite Build Configuration. In the Gradle Project Build Composite dialog, select projects that you want to include in your Gradle composite build. Re-import your main Gradle project.
check out this link https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html
Summary :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With