google map not working on both emulator and device

前端 未结 3 1767
自闭症患者
自闭症患者 2020-12-20 07:33

I am trying to run a simple google map but its not working its showing only map background.checked on both emulator and device.

xml file:-



        
3条回答
  •  佛祖请我去吃肉
    2020-12-20 07:50

    In your Manifest add

    
    

    Also add to your application tag

    
    

    You can also visit Google Map V2 , this and Example of map v2

    Hope it helps you.

    Edit:

    As per you said Add this xml file in your project

    
    
        
    
    

    And access it with in your map activity

     map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))
            .getMap(); 
    

提交回复
热议问题