Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: cannot import BaseGameUtils successfully in Eclipse

I want to use game api in my android project.

And I get started by following the instructions described in Google Site (the part - Setting up your game project) from the following link. https://developers.google.com/games/services/android/init

I have downloaded the library BaseGameUtils from this link https://github.com/playgameservices/android-samples

Then I import it as a project as described in instruction.

However, what I've got is a project named main but not BaseGameUtils.

And then I cannot called its BaseGameActivity in my android project.

How can I solve it?

like image 608
Season Avatar asked May 04 '26 01:05

Season


2 Answers

Same issue solved differently.

I've imported the BaseGameUtils project and also couldn't refer to it. If you right-click the BaseGameUtils project that you've just imported and then go to properties > android and check "is library" you are able to refer to it in your app project.

like image 162
SEG.Veenstra Avatar answered May 05 '26 15:05

SEG.Veenstra


Solved.

When importing project, not to select BaseGameUtils folder, but the root folder 'android-samples-master'. Then check the project named BaseGameUtils.

like image 41
Season Avatar answered May 05 '26 15:05

Season