Play-games-plugin-for-unity: Resource '@integer/google_play_services_version' not found in AndroidManifest.xml:32

Created on 31 Jul 2017  路  14Comments  路  Source: playgameservices/play-games-plugin-for-unity

I failed build project with gradle(new) and is says Resource '@integer/google_play_services_version' not found in AndroidManifest.xml:32. How can I resolve it?(using GooglePlayGamesPlugin-0.9.39a and 11.0.2 libs)

Most helpful comment

Instead of moving it, you can actually just comment it. Its not needed.

All 14 comments

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

Was this page helpful?
0 / 5 - 0 ratings