Basegame Util Cannot Be Resolved To A Type
Solution 1:
I think you may be using the version of BaseGameUtils in here:
...\android-samples-master\BasicSamples\libraries
But you are using Eclipse so you need to use the one in the following location:
...\android-samples-master\eclipse_compat\libraries
You may then also encounter an error with the GameHelper.java class in the BaseGameUtils folders. Use the code available here instead: https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3
Solution 2:
BaseGameActivity cannot be resolved to a type
publicClassFisrstActivityextendsBaseGameActivity{
In your project, right click >
properties
>Android
> inLibrary
section check if your library is correct and don´t show any red cross.Check the same for your
BaseGameUtils
library, probably the reference togoogle_play_services
is incorrect.
you problem must be similar to : android - import - with developers google com games
Solution 3:
Basegameutils from github includes all source .java files in java folder. When implementing in eclipse, move all these folders from 'java' to 'src'. Eclipse compiles them to produce .class files which fixes this problem.
Post a Comment for "Basegame Util Cannot Be Resolved To A Type"