BaseGame Util cannot be allowed for type

My project requires the BaseGameUtil library. I downloaded the BaseGameUtil library here.

But when I import it into my android project, it does not show baseGameUtil, instead it shows main as added in my eclipse project, and even when I add this main library, I still get the same error.

Can anybody help me.

enter image description hereenter image description here

+3
source share
3 answers
BaseGameActivity cannot be resolved to a type

public Class FisrstActivity extends BaseGameActivity{
  • In your project, right-click> properties> Android> section Library, check your library and do not show a red cross.

  • BaseGameUtils, , google_play_services.

: android - import - google com games

+2

, BaseGameUtils :

...\--\BasicSamples\

Eclipse, :

...\--\eclipse_compat\

GameHelper.java BaseGameUtils. : https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3

+4

Basegameutils from github includes all the source .java files in the java folder. When deploying to eclipse, move all of these folders from "java" to "src". Eclipse compiles them to create .class files that fix this problem.

0
source

All Articles