I'm having the same issue. I was able to resolve this error by moving the line:
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
from AndroidManifest.xml in "Plugins/Android/MainLibProj" to "Plugins/Android/AndroidManifest.xml". The project now builds with Gradle however the app is crashing at Google Play Games popup. I'm curious if yours will build and NOT crash at authentication. Keep me posted.
Using Unity 2017.1.0f3 and play-services 11.0.2 by the way.
@TheSLAP I never had crash at authentication, what the crash log shows?
It was something unrelated. I have it solved now. Did you get yours to build by doing what I said above?
@TheSLAP Yes, I can export an run-well android studio project now.Thx~
Instead of moving it, you can actually just comment it. Its not needed.
@TheSLAP thanks for solution
I had the same error, used the same solution.
@Hagrida solution worked for me . thks!
Hello, I dont know how to solve it, can you please desribe it better for me ?
I cant find any "MainLibProj"
I found it
Took me a while to find. MainLibProj was renamed to GooglePlayGamesManifest. Can find the plugin at Assets/GooglePlayGames/Plugins/Android/GooglePlayGamesManifest.plugin. Just for future reference.
ith Gradle however the app is crashing at Google Play Games popup. I'm curious if yours will build and NOT crash at authentication. Keep me posted.
It's building successfully but when i am installing it on a device and trying to run, it's getting crash after opening the app menu. can anyone tell me what's wrong?
I had the same problem, add this 2 line in your build.gradle the problem will be resolved probably ;)
dependencies {
.
.
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-vision:10.0.0'
}
I'm having the same issue. I was able to resolve this error by moving the line:
from AndroidManifest.xml in "Plugins/Android/MainLibProj" to "Plugins/Android/AndroidManifest.xml". The project now builds with Gradle however the app is crashing at Google Play Games popup. I'm curious if yours will build and NOT crash at authentication. Keep me posted.
Using Unity 2017.1.0f3 and play-services 11.0.2 by the way.
This worked
Most helpful comment
Instead of moving it, you can actually just comment it. Its not needed.