Search Unity

Cant Get it to work... GooglePlay Services

Discussion in 'Android' started by YashaISR, Oct 23, 2018.

  1. YashaISR

    YashaISR

    Joined:
    Nov 8, 2016
    Posts:
    16
    so bashing my head with this issue around 2 days now
    tried most of the solutions found online doesnt seem to help
    so the problem is Google Play Services
    im using the latest package 0.9.5 with admobs package as well
    im able to sign in to the Play service interface and get in to the leaderboard just to see its empty
    the second i post a score i cant get to the leaderboard any more its just crashes (only googleplay interface no the app)


    when i try to see the leaderboard it says
    java.lang.ClassNotFoundException: android.support.v7.app.AppCompatViewInflater
    in the ADB

    also did already tried to put this

    <activity android:name="com.google.games.bridge.NativeBridgeActivity"
    android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
    at the manifest (just saying as its the most popular solution)


    the code is from their official doco

    void Start () {
    PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
    PlayGamesPlatform.InitializeInstance(config);
    PlayGamesPlatform.Activate();
    SignIn();
    }
    void SignIn()
    {
    Social.localUser.Authenticate(success => { });
    }
    public void PostScore(long score)
    {
    Social.ReportScore(score, leaderboardId,success => { });
    }
    public void ShowLeaderboard()
    {
    if(!Social.localUser.authenticated)
    {
    SignIn();
    }
    Social.ShowLeaderboardUI();
    }