English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

Why is "error:attribute android:preserveLegacyExternalStorage not found." displayed?

Last Updated on2025-02-27 07:28:38
Apps running Android 11 are forced to use scoped storage. In this case, these apps cannot directly access external storage. The preserveLegacyExternalStorage flag is provided to enable apps updated to adapt to Android 11 to access previous data stored in external storage. However, the preserveLegacyExternalStorage flag is available only in Android SDK 30. Therefore, this error is reported.
To solve this problem, use either of the following solutions:

Click for services and help

Help Center