Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve symbol @integer/google_play_services_version for intellij

AANot sure why this error is occuring... This is my AndroidManifest.xml file. I added in Google Play Services, Repository and Android Support Library. Not sure if i need another plug in or what

          <?xml version="1.0" encoding="utf-8"?>
            <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                      package="com.example.RuMaps"
                      android:versionCode="1"
                      android:versionName="1.0">
                <uses-sdk android:minSdkVersion="20"/>
                <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
                    <activity android:name="MyActivity"
                              android:label="@string/app_name">
                        <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="API-KEY"/>

                </application>
            </manifest>
like image 547
Patricia Rozario Avatar asked Sep 27 '14 01:09

Patricia Rozario


1 Answers

Try adding this in the build.gradle file:

dependencies {
    compile 'com.google.android.gms:play-services:7.5.0'
}
like image 77
Jorge Cob Avatar answered Oct 20 '22 01:10

Jorge Cob