Issues in integrating Google Play Game Services Le

2019-02-20 01:21发布

I'm trying to store and display the user's game score in a leaderboard using Google Play Game Services . I'm following this --> https://developers.google.com/games/services/android/init . The issue arises when I import the BaseGameUtils library in my project , then all the andEngine classes display an error (for eg. Camera cannot be resolved and my imports also display an error) . Also , there are two BaseGameActivity.java classes (one in the andEngine jar and one in the BaseGameUtils library ) . How to resolve this issue , please help .

1条回答
ら.Afraid
2楼-- · 2019-02-20 01:35

I resolved it in following way: 1. Changed the name of BaseGameActivity (from BaseGameUtils lib) to GoogleBaseGameActivity 2. Made it to extend AndEngine BaseGameActivity 3. In my main game activty I extend GoogleBaseGameActivty instead of Andengine one.

Object oriented programming guys:)

查看更多
登录 后发表回答