Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LibGdx - Installation Android project

I imported into Eclipse LibGdx but I have a problem with the version on android. Everything went well, creating a project and importing LibGdx to Ecipse. I have two errors:

Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for android.os.Handler. Fix the build path then try building this project test-android Unknown Java Problem

and:

Description Resource Path Location Type The type android.os.Handler cannot be resolved. It is indirectly referenced from required .class files AndroidLauncher.java /test-android/src/com/mygdx/test/android line 1 Java Problem

I format the disk, thinking that this will solve the problem but I still have the same errors.

like image 224
user2540406 Avatar asked Aug 11 '26 17:08

user2540406


1 Answers

I fixed it installing Eclipse ADT Plugin.

At Eclipse - Help -> Install New Software

  • In "Work with" whrite: https://dl-ssl.google.com/android/eclipse/

  • Add

  • Select All

  • Finish

  • Agree

  • Reload Eclipse

  • Project -> Properties -> Android -> Choose at Project build target

  • Then click OK

  • Refresh android project

Wait a sec and error should be gone.

like image 166
Ernestyno Avatar answered Aug 13 '26 09:08

Ernestyno