as many people I\'m trying to follow this tutorial without success. The simple error is:
The import com.google.example.games.basegameutils.BaseGameActivity c
BaseGameActivity is not official from Google in order to use you need to copy its Source to your project. Please notice that the name of package declares its an "Example".
The eclipse_compat
folder is not directly available, it needs to be generated via a provided script. Refer to the section "If you're using Eclipse..." located on the main page of the "android-basic-samples" project.
To summarize it:
Scripts/make_eclipse_compat
Once done, follow these steps in Eclipse:
You can have the eclipse_compat
from current github. It is generated when you run a script that comes packaged (unzip the github file, then run Scripts/make_eclipse_compat
).
ozbek
yes this worked,
Yeah, I think I solved the issue. (Right click your project -> Properties -> Java Build Path -> Projects tab -> Add -> BaseGameUtils).
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.
It appears my issue likely is that I am using Eclipse. I need to use the eclipse_compat
folder and use a different BaseGameUtils
. However on the github site where they host the code, they removed that folder.
They suggest using Android Studio instead, I'm just not ready to migrate there yet. Does anyone have a copy of the BaseGameUtils
for Eclipse?