Binary XML file line #8: Error inflating class fragment, Google Maps

前端 未结 5 1985
醉酒成梦
醉酒成梦 2021-01-12 07:48

In this app, I am trying to add a functional V2 google map. I\'ve looked at most of the tutorials for creating an activity, obtaining a key for the maps, and creating the xm

5条回答
  •  感情败类
    2021-01-12 07:53

    I followed the below steps::

    Step 1: Include below line in manifest make sure you add within the application tag

        
        
    

    Ex::

     
    
            
            
    
            
            
    
    

    Step 2: Make sure your activity extends FragmentActivity


    Step 3: Use the mapFragment element as below in the xml

      
    

提交回复
热议问题