Using Google Play Service SDK with Android Native

The Android Native plugin has its own event-driven implementation of Google Play Service SDK.

Few months ago Google released its own Unity plugin for Google Play. If you prefer to use this plugin instead Google Play SDK implementation in Android native, you can definitely do this. But you should remove conflicts since both plugins has the same SDK implementation.

Disable Google Play API:

 

Remove the following lines from manifest:

<!-- Google Play Service Block Start -->
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<!-- Block End -->

   
<!-- Google Cloud Service Block Start -->
<meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="@string/app_id" />
<!-- Block End →>

and

<uses-sdk android:minSdkVersion="<version>" android:targetSdkVersion="<version>" />

 

That’s it. All conflicts are solved.