“Error inflating class fragment” with google map

前端 未结 10 1914
有刺的猬
有刺的猬 2020-12-01 09:29

I tried to make a sample project using Google Map, but I couldn\'t. Help me please!

Test Device : Android 4.0.4


Error Message :

12-2         


        
10条回答
  •  [愿得一人]
    2020-12-01 10:33

    Accepted answer is correct but meaningful information i share with you, may be anyone facing same issue what i face

    If everything is woking same as google code then please check manifest file in my case i added geo key and map key that's why exception occurs,

    Note - do not add two keys in manifest file remove map key

    meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="@string/google_maps_key"/>
    

    above code and add this code.

     
    
     
    

提交回复
热议问题