Skip navigation

We will update our Privacy Policy soon. Please see the preview.

What you should know before watching this course

What you should know before watching this course: Building Mobile Apps with Google Maps Android API v2
What you should know before watching this course: Building Mobile Apps with Google Maps Android API v2

Join for an in-depth discussion in this video What you should know before watching this course, part of Building Mobile Apps with Google Maps Android API v2.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 50m
Duration
134,208
Views
Show More Show Less

Q: In the Chapter 2 movie "Checking the device for the Google Play services APK," when I create my first Google Maps app, the app crashes when I call the custom method servicesOK(). The error in LogCat starts with:
 
"java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value."
 
How do I fix this? 

A: The latest version of the Google Play services library has a new required meta-data tag in the app manifest. Add the following tag within the <application> tag:
 
<meta-data
     android:name="com.google.android.gms.version"
     android:value="@integer/google_play_services_version" /> 
 
After rebuilding the app, the error should be resolved. 

Skills covered in this course
Developer Mobile Apps Android

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month