When adding the below element tag to AndroidManifest.xml file
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
If you see the below error message then it means that Google play services library is not present for the current Android project.
The error is:
No resources found that match the given name (at 'value' with value '@integer/google_play_services_version').
To add Google play services lib, follow the below steps
1) Select File -> Import
2) browse to the folder where ‘Google play services library’ is present
3) Note: ‘Google play services library’ is located in\sdk\extras\google\google_play_services
4) select ‘Google play services library’ and ‘copy project into workspace’
Note: “copy project into workspace” must be selected so that the lib does not get modified
5) right on your project -> properties -> android -> library and select the Google play services lib
6) Rebuild your project which will clear the error
.
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
If you see the below error message then it means that Google play services library is not present for the current Android project.
The error is:
No resources found that match the given name (at 'value' with value '@integer/google_play_services_version').
To add Google play services lib, follow the below steps
1) Select File -> Import
2) browse to the folder where ‘Google play services library’ is present
3) Note: ‘Google play services library’ is located in
4) select ‘Google play services library’ and ‘copy project into workspace’
Note: “copy project into workspace” must be selected so that the lib does not get modified
5) right on your project -> properties -> android -> library and select the Google play services lib
6) Rebuild your project which will clear the error
.