Google Play Services v13 error meta-data in AndroidManifest
The Google Maps getting started guide says:
Add the Google Play services version to your app's manifest
Edit your application's AndroidManifest.xml file, and add the
following declaration within the element. This embeds
the version of Google Play services that the app was compiled with.
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
After Google Play Service update to version 13 I got an error
You need to add the following in your manifest:
<application>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
...
</application>
EDIT:
This information can be found in the logcat error msg as well as on Setting Up Google Play Services (Thanks Brais Gabin)
A required meta data tag in your android manifest does not exist
After you add following meta tag in the manifest file
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
Make sure
"@integer/google_play_services_version" being defined in a custom value file like this:
In /res/values/strings.xml
<?xml version="1.0" encoding='utf-8' standalone='no'?>
<integer name="google_play_services_version">12451000</integer>
</resources>
If the issue remains, please let me know
Adding Google Play services version to your app's manifest?
It is probably that your library is not linked to project properly or that you have older google-play-services library version so conflict appears and Eclipse got stupid.. :S
No you don't need to add anything in integers.xml. When you link properly Google-play-services library to your project reference android:value="@integer/google_play_services_version"
will be found and you are ready to go. When you add library to your project just do one more clean so funny Eclipse environment sweep-out things properly.
If you hardcode somewhere this number when next play version come you would need to update it. And if you forget that, you will spend time again looking for bug.. :S
Hope it helped. ;)
A required meta-data tag in your app's AndroidManifest.xml does not exist.
Missing the below in application tag of manifest. This ia new requirement as of updated google play services.
Check the topic Add the Google Play services version to your app's manifest @
https://developers.google.com/maps/documentation/android/start
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Remove this
<permission android:name ="com.example.locations.permission.MAPS_RECEIVE" android:protectionLevel="signature"></permission>
not required
The meta-data tag in your app's AndroidManifest.xml does not have the right value. - Google Maps
Your meta-data
is nested and I think that's not the way it's supposed to be. Try to move the inner meta-data
out of its current position:
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="@string/google_api_key"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Google Drive, meta-data tag in app's AndroidManifest.xml?
Update Drive API new version (drive-v2r106lv1.15.0-rc)
Related Topics
How to Use Dimens.Xml in Android
How to Change the Background of an Android Tab Widget
Converting Utc Dates to Other Timezones
Change Clickable Textview's Color on Focus and Click
How to Change the Tabs Images in the Tabhost
Error Inflating Class Androidx.Constraintlayout.Constraintlayout After Migration to Androidx
How to Have a Viewpager Inside of a Scrollview
Android: Using Objectanimator to Translate a View with Fractional Values of the View's Dimension
Android Tabwidget Detect Click on Current Tab
Android Calling Asynctask Right After an Another Finished
Android: Launch Activity from Clickable Text
How to Get Each Device's Ip Address in Wi-Fi Direct Scenario
Android 'Unable to Add Window -- Token Null Is Not for an Application' Exception
Two Textviews Side by Side, Only One to Ellipsize
How to Get References for All Currently Active Fragments in an Activity
Java.Lang.Noclassdeffounderror: Com.Google.Android.Gms.R$Styleable in Android