android日历权限问题 [英] android calendar permission issue

查看:87
本文介绍了android日历权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试访问android设备日历,该日历失败,但出现以下异常

I am trying to access the android device calendar, which fails with this exception

I将这个确切的构建提示添加到了codenameone_settings.properties文件中:

I added this exact build hint to the codenameone_settings.properties file:

codename1.arg.android.xpermissions=<uses-permission android:name="android.permission.READ_CALENDAR"/> <uses-permission android:name="android.permission.WRITE_CALENDAR"/>

我是否缺少某些东西?

推荐答案

这是由API级别23中的新Android安全权限引起的。

This is caused by the new Android security permission in API level 23.

您可以将应用设置为使用API​​级别21通过在下面添加构建提示, DeviceCalendar 应该可以。

You can set your app to use API level 21 by adding the build hint below and DeviceCalendar should work.

android.targetSDKVersion=21




记住要始终 Upvote 标记为答案或在其他用户回答您的问题时发表评论。这是他们帮助您解决问题的唯一奖励。

Remember to always Upvote, Mark as answer, or leave a comment when another user answers your question. That's the only reward they get for helping you to solve a problem.

这篇关于android日历权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆