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

前端 未结 2 1360
生来不讨喜
生来不讨喜 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 14:54

    I got the same exception as well, but I figured out for Google API v2 to work, you must include these permissions

        
        
        
        
        
    

    I hope this will help you guys.

    P.S I used these permissions for adding a simple map in my app. There are certain other permissions which this link suggests as well.

提交回复
热议问题