Hi!
I’m having a hard time trying to setup an Android Native project with GPGS. I’ve read the docs but I’m not sure yet how to proceed. I’m not sure how I should try to include the GPGS libs into the project. After running the download_plugins script, I copied the resulting jar (plugin.gpgs.v2.jar) into my libs folder. I also included the following dependencies in my gradle file:
dependencies { api fileTree(dir: 'libs', include: '\*.jar') implementation 'com.google.android.gms:play-services-base:11.0.4' implementation 'com.google.android.gms:play-services-drive:11.0.4' implementation 'com.google.android.gms:play-services-games:11.0.4' implementation 'com.android.support:appcompat-v7:25.3.1' implementation 'com.android.support:support-v4:25.3.1' implementation 'com.android.support.constraint:constraint-layout:1.0.2' api project(':plugin') }
And updated the AndroidManifest to point out that these plugins are needed:
\<meta-data android:name="usesGooglePlayServicesComponentGames" android:value="true" /\> \<meta-data android:name="usesGooglePlayServicesComponentDrive" android:value="true" /\>
But the result is always the same when I run the game:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/games/multiplayer/realtime/RoomStatusUpdateCallback;
So, it seems GPGS libs are not properly setup.
Could you please help?