尝试在团结5.3上使用google play services v-0.9.34但当我尝试登录时,google play会弹出然后停止。
log cat中的错误: - “无法从网络中检索应用程序xxxxxxxxxxxx。 应用程序ID xxxxxxxxxxxx与包com.company.game无关。检查清单中的应用程序ID。“
我已经花了很多时间来获得任何解决方案,但我没有找到任何解决方案。任何类型的帮助都非常感激
已经检查过这些:
1. https://github.com/playgameservices/play-games-plugin-for-unity/issues/216
2. Google Play Game Services - unable to sign in
3. Google Play Games login fails
public class FruitLevelSelect : MonoBehaviour {
private string leaderbord = "xxxxxxxxxxxxxxxxx";
void Start()
{
PlayGamesPlatform.DebugLogEnabled = true;
GooglePlayGames.PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool success) => {
// handle success or failure
});
}
public void Share()
{
if (Social.localUser.authenticated)
{
((PlayGamesPlatform)Social.Active).ShowLeaderboardUI(leaderbord);
}
else {
Social.localUser.Authenticate((bool success) => {
if (success)
{
((PlayGamesPlatform)Social.Active).ShowLeaderboardUI(leaderbord);
}
});
}
}