Java – BaseGame Util cannot resolve to type

BaseGame Util cannot resolve to type… here is a solution to the problem.

BaseGame Util cannot resolve to type

My project needs the BaseGameUtil library
I downloaded the BaseGameUtil library from here

But when I import it into my android project, instead of baseGameUtil, it shows main added to my eclipse project, and I still get the same error even though I added the main library.

Can anyone help me.

enter image description here
enter image description here

Solution

I think you’re probably using BaseGameUtils’ version here:

…\android-samples-master\BasicSamples\libraries

However, you

are using Eclipse, so you need to use Eclipse in the following location:

…\android-samples-master\eclipse_compat\libraries

Then you may also encounter a GameHelper.java class error in the BaseGameUtils folder. Instead, use the code provided here: https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3

Related Problems and Solutions