Max Markson Max Markson - 1 month ago 25
Android Question

Resolve BaseGameActivity

as many people I'm trying to follow this tutorial without success.
The simple error is:

The import com.google.example.games.basegameutils.BaseGameActivity cannot be resolved


BaseGameUtils is set as library and it imports the google-play-services without errors.
My test project imports the BaseGameUtils library without errors, infact if I try to import the generic library I have no error

import com.google.example.games.basegameutils.*; -> no error!


In the folder

workspace\BaseGameUtils\gen\com\google\example\games\basegameutils


there are only two files:
BuildConfig.java
and
R.java
.
The BaseGameActivity.java file is present only in the folder

workspace\BaseGameUtils\java\com\google\example\games\basegameutils


with other two files
GameHelper.java
and
GameHelperUtils.java
.

How can I resolve the problem? A simple
Clean -> Build
has no effect.
Thank you

.: EDIT :.

Here a screen of the situation

Answer

You need to use BaseGameUtils located at eclipse_compat/libraries/BaseGameUtils instead of BasicSamples/libraries/BaseGameUtils. Since the eclipse_compat directory is no more available in the github site, I've shared it here.