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?
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.
Solved.
When importing project, not to select BaseGameUtils folder, but the root folder 'android-samples-master'. Then check the project named BaseGameUtils.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With