Error: (40, 28) A resource was not found that matches the specified name (in 'value' with the value '@ integer / google_play_services_version')

I still can not solve this problem, in my androidManifest.xml I have: im working in android studio and still can not find the answer, please help !!! this is a map fragment display

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.presley.valle.jobme" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="20" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-feature android:glEsVersion="0x00020000" android:required="true" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.presley.valle.jobme.MainActivity" android:label="@string/app_name" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value=****************************MY_KEY" /> </application> </manifest> 
+6
source share
2 answers

Solved, a bit confusing while doing this in an Android studio, but all I did was: go to:

 -> File -> project structure -> app -> dependencies -> click on + -> library dependency -> select play-services (October 2015: com.google.android.gms:play-services:7.8.0) -> Rebuild 

The problem is solved! I could do it the way you say, but what if it's not a version indicating. Thanks

+14
source

It looks like you have not added the Google Play Services library for the project. In the build.gradle section in the dependencies add:

compile 'com.google.android.gms:play-services:5.0.89'

(or any other version of this version 5.0.89 is just an example)

+4
source

Source: https://habr.com/ru/post/978850/


All Articles