App crashes when running maps activity

前端 未结 3 1855
[愿得一人]
[愿得一人] 2020-12-11 01:38

My projects Map activity is not working
I just pasted the api key in place google_maps_api.xml and clicked run

Logcat:

E/Andr

3条回答
  •  鱼传尺愫
    2020-12-11 02:01

    Put this in the Manifest tag:

    
    

    More info: https://issuetracker.google.com/issues/79478779

    as google documentation said:

    If you are using com.google.android.gms:play-services-maps:16.0.0 or below and your app is targeting API level 28 (Android 9.0) or above, you must include the following declaration within the element of AndroidManifest.xml.

提交回复
热议问题