1

I'm using intelliJ with libgdx. I created a new project using libgdx and imported it to intellij. when I try to build it I get this error:

Error:(3, 24) java: package com.badlogic.gdx does not exist

and other similar problems. what could be the reason for it?

p.s I found a similar post about it but I couldn't found the gradle window and also I think that it won't help

SOLUTION: The problem was that after I created the project using libgdx-setup.jar, Instead of using "Open Project" I used "Import Project" and it messed up the project.

Use "Open Project" after you create the project using libgdx-setup.jar file and in advanced settings check the IDEA checkbox

Community
  • 1
  • 1
Alex K
  • 5,092
  • 15
  • 50
  • 77
  • I would recommend that instead of editing your question and saying **SOLUTION**, you can answer your own question and mark your own answer as accepted. I would have up-voted it. – Simon Forsberg Nov 05 '14 at 19:18

1 Answers1

1

Looks like the gdx.jar is missing in your classpath. Download and add it to your classpath.

Jens
  • 67,715
  • 15
  • 98
  • 113