Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Google Play Services official plugin from Google missing manifest element

Discussion in 'Android' started by MisterGilmore, Mar 4, 2014.

  1. MisterGilmore

    MisterGilmore

    Joined:
    Mar 2, 2014
    Posts:
    1
    I've tried using https://github.com/playgameservices/play-games-plugin-for-unity to implement in my game, but after doing all the steps and trying it out I get the following error in my logs:

    I/Unity (18399): AndroidJavaException: java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist. You must have the following declaration within the element: @integer/google_play_services_version" />

    Anyone else experience this issue?
     
  2. Simon-Larsen

    Simon-Larsen

    Joined:
    Feb 26, 2013
    Posts:
    11
    I've been trying to deal with this issue as well. I see several answer explaining that you should add the following code to your AndroidManifest.xml
    Code (csharp):
    1. <application
    2. <meta-data
    3.     android:name="com.google.android.gms.version"
    4.     android:value="@integer/google_play_services_version" />
    5. </application>
    When I do this, I no longer get the error you also mentioned. However the game seems to just crash as soon as I attempt to authenticate the user. Anybody having the same problem?

    Edit: Found another plugin that simply worked after 3 simple steps. https://github.com/faizann/UnityGPGPlugin
     
    Last edited: Mar 15, 2014