applicationdoesnothavesufficientgeolocationpermissions
版權宣告:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/inforstack/article/details/77150006
在AndroidManifest.xml檔案下新增如下:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />