diff --git a/.github/README.md b/.github/README.md index dae0bc2..6fd2806 100644 --- a/.github/README.md +++ b/.github/README.md @@ -48,13 +48,9 @@ This plugin supports Unity's new Input System but it requires some manual modifi ## FAQ -- **Android build fails, it says "error: attribute android:requestLegacyExternalStorage not found" in Console** - -`android:requestLegacyExternalStorage` attribute in _AndroidManifest.xml_ grants full access to device's storage on Android 10 but requires you to update your Android SDK to at least **SDK 29**. If this isn't possible for you, you should open *SimpleFileBrowser.aar* with WinRAR or 7-Zip and then remove the `` tag from _AndroidManifest.xml_. +- **File browser doesn't show any files on Mac when sandboxing is enabled** -- **Can't show the file browser on Android, it says "java.lang.ClassNotFoundException: com.yasirkula.unity.FileBrowserPermissionReceiver" in Logcat** - -If you are sure that your plugin is up-to-date, then enable **Custom Proguard File** option from *Player Settings* and add the following line to that file: `-keep class com.yasirkula.unity.* { *; }` +This is a known issue but I can't give an ETA for a solution at the moment: https://github.com/yasirkula/UnitySimpleFileBrowser/issues/66 - **File browser doesn't show any files on Android 10+** @@ -64,6 +60,14 @@ File browser uses *Storage Access Framework* on these Android versions and users Please see: https://github.com/yasirkula/UnitySimpleFileBrowser/issues/70 +- **Android build fails, it says "error: attribute android:requestLegacyExternalStorage not found" in Console** + +`android:requestLegacyExternalStorage` attribute in _AndroidManifest.xml_ grants full access to device's storage on Android 10 but requires you to update your Android SDK to at least **SDK 29**. If this isn't possible for you, you should open *SimpleFileBrowser.aar* with WinRAR or 7-Zip and then remove the `` tag from _AndroidManifest.xml_. + +- **Can't show the file browser on Android, it says "java.lang.ClassNotFoundException: com.yasirkula.unity.FileBrowserPermissionReceiver" in Logcat** + +If you are sure that your plugin is up-to-date, then enable **Custom Proguard File** option from *Player Settings* and add the following line to that file: `-keep class com.yasirkula.unity.* { *; }` + - **RequestPermission returns Permission.Denied on Android** Declare the `WRITE_EXTERNAL_STORAGE` permission manually in your [**Plugins/Android/AndroidManifest.xml** file](https://answers.unity.com/questions/982710/where-is-the-manifest-file-in-unity.html) with the `tools:node="replace"` attribute as follows: `` (you'll need to add the `xmlns:tools="http://schemas.android.com/tools"` attribute to the `` element).