Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import Gradle Projects in IntelliJ?

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)

like image 480
Nemos Avatar asked Jul 06 '15 21:07

Nemos


People also ask

How do I Import a project into IntelliJ?

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.

How do I re Import Gradle dependencies in IntelliJ?

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.


1 Answers

check out this link https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html

Summary :

  1. open Intellij Idea Welcome Page
  2. press Ctrl + Shift + A
    a search Field will show up
  3. type from existing sources
    select the item import project from existing sources
  4. a message saying 'load groovy project' will show up in Intellij Idea, click on it to load the project as a groovy project
like image 149
velocity Avatar answered Oct 06 '22 08:10

velocity