android google map v.2 : android.view.InflateException: Binary XML file line #739: Error inflating class fragment

前端 未结 2 1362
生来不讨喜
生来不讨喜 2021-01-22 14:39

I found similar topics in stackoverflow but it didn\'t help for me. I want to show map, but when i run it, it return force close. Here are the codes :

map = ((Ma         


        
2条回答
  •  滥情空心
    2021-01-22 15:00

    The logcat is clear

    You need to add the below to manifest file

      
    

    https://developers.google.com/maps/documentation/android/start#add_the_google_play_services_version_to_your_apps_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.

提交回复
热议问题