简体   繁体   中英

“Error:(3, 24) java: package com.badlogic.gdx does not exist”, How to fix this?

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?

ps 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM