Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up libdgx with IntelliJ?

I followed this tutorial but it seems that it is kind out of date? I'm not sure.
Unfortunately I'm not very experienced with Java (but with C#, Python, ..) so maybe there is something obvious I did not regard.

IntelliJ is giving me import errors for libraries from the 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 there are some missing dependencies but this gdx-setup.jar should solve this problems already?

like image 359
Lucas Avatar asked Mar 26 '14 13:03

Lucas


1 Answers

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

Open your android skd manager from the tools directory of where ever you put the android sdks

make sure that Android SDK build-tools 19.03 is installed

if not install it

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

then hit the refresh (two green arrow)

Worked for me anyway.

like image 77
Gary Caine Avatar answered Sep 28 '22 16:09

Gary Caine