android - 我已经将targetSdkVersion更新为Q,但是我无法获得READ MEDIA IMAGES的权限

标签 android android-10.0

我已将 targetSdkVersion 更新为 Q,但我无法获得新权限,如 READ MEDIA IMAGES

这是我的 build.gradle 文件:

compileSdkVersion 'android-Q'
    defaultConfig {
        applicationId "com.example.targetversiontest"
        minSdkVersion 18
        targetSdkVersion 'android-Q'
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

我无法使用

获取READ MEDIA IMAGES
<uses-permission android:name="android.permission.READ_MEDIA_IMAGE"/>

Manifest.permission.READ_MEDIA_IMAGE

有人知道为什么吗?

最佳答案

他们在 Q Beta 3 中删除了该权限。使用 READ_EXTERNAL_STORAGE

关于android - 我已经将targetSdkVersion更新为Q,但是我无法获得READ MEDIA IMAGES的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56098382/

相关文章:

安卓运营商app e-sim激活码使用

android - 如何以编程方式打开 Android Q 中的设置面板?

php - 如何填充 Android ListView 中的所有列

java - 解析数据org.json.JSONException : End of input at character 0 of - Android时出错

android - android 10 (2019) 可以恢复语音通话录音吗?

android - 如何在 Android 10 中创建公用文件夹/文件

android - 如何处理 "Don' t ask again”in while requesting Role in Android Q?

android - 如何清除 Android 应用缓存?

android - 访问 Android 相机框架而不进行预览

android - 法国是否支持 paypal rest-api 进行实时交易 paypal-android-sdk