AAPT: error: attribute android:requestLegacyExternalStorage not found

后端 未结 2 2204
被撕碎了的回忆
被撕碎了的回忆 2021-02-11 13:18

collection error in AndroidManifest.xml

AAPT: error: attribute android:requestLegacyExternalStorage not found.

Although the attribute is there but it writes an err

相关标签:
2条回答
  • 2021-02-11 13:29

    (Material Files aurthor here)

    You need to compile against SDK 29 and maybe use the most recent build tools for aapt to know this attribute, because it's introduced in Android 10.

    0 讨论(0)
  • 2021-02-11 13:30

    Make these changes in android\app\build.gradle :

    compileSdkVersion 29
    
    targetSdkVersion 29
    

    It will work.

    0 讨论(0)
提交回复
热议问题