本文介绍了我遇到了MISSING_PERMISSION问题,这里是Android的地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试一个仅在屏幕上显示这里地图"的应用程序.我已按照Here文档中的所有步骤+在AndroidManifest.xml中提供了app_id,app_code,许可证密钥+提供了6个权限.

I'm trying an application just show Here map on screen. I've followed all of steps in document of Here + provided app_id, app_code, license key + provided 6 permissions in AndroidManifest.xml.

但是出现了以下问题:

我正在使用gradle 2.8,targetSdkVersion 23,compileSdkVersion 23

I'm using gradle 2.8, targetSdkVersion 23, compileSdkVersion 23

推荐答案

Android 6/API 23具有新的权限系统,这意味着您必须向用户请求关键权限.请参阅Android文档: https://developer.android.com/training/permissions/requesting.html

Android 6 / API 23 has a new permission system, that means you have to request critical permissions from the user. See Android docs: https://developer.android.com/training/permissions/requesting.html

仅向清单添加关键权限已经不够了.

Just adding the critical permissions to the manifest is not enough anymore.

如果您不想这样做,您仍然可以将traget API级别设置为22并以旧版模式工作,但是为了进一步证明将来,您应该采用新的Android6请求权限方式.

If you don't want to do this, you can still set traget API level to 22 and work in legacy mode, but to be more future proof, you should implement the new Android6 way of requesting permissions.

您必须在HERE SDK中请求的关键权限是:ACCESS_FINE_LOCATION和WRITE_EXTERNAL_STORAGE

The critical permissions in the HERE SDK that you have to request are: ACCESS_FINE_LOCATION and WRITE_EXTERNAL_STORAGE

这篇关于我遇到了MISSING_PERMISSION问题,这里是Android的地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 10:23