简体   繁体   中英

How to fix“No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version)” in Xamarin android c#

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

I inserted these line in AndroidManifest.xml for google map, but am getting this error:

"No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version)"

How can I solve this?

Basically this means that the key for google_play_services_version is missing from the auto generated Resources.designer.cs file. This should be added to the manifest by the Google Play Services (GPS) library when install the GPS package and build the project. Have you installed the Xamarin.GooglePlayServices.Maps package?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM