How to install libdgx with IntelliJ?

I followed this tutorial, but it seems to be partly out of date? I'm not sure.
Unfortunately, I am not very knowledgeable in Java (but with C #, Python, ..), so maybe there is something obvious that I have not considered.

IntelliJ gives me import errors for libraries from com.badlogic.gdx package

import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; 

java: package com.badlogic.gdx does not exist, etc ..

Actually, I would say that there are some missing dependencies, but should this gdx-setup.jar solve these problems already?

+7
java intellij-idea game-engine
source share
1 answer

I had the same problem and I found the answer that worked for me.

Open your Android developer manager from the tools directory where you have ever added android sdks.

make sure the Android SDK 19.03 build tools are installed

if not install it

then go to intelliJ and from the menu bar open View-> Tool Windows → gradle

then click update (two green arrows)

Worked for me anyway.

+4
source share

All Articles