浏览代码

Enable legacy external storage for Android 10

(cherry picked from commit 2e7e3dcfe41ab9dd593d92f1d9c99172a67c9eb1)
Fredia Huya-Kouadio 5 年之前
父节点
当前提交
11fba315ec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/android/AndroidManifest.xml.template

+ 1 - 1
platform/android/AndroidManifest.xml.template

@@ -10,7 +10,7 @@
                       android:largeScreens="true"
                       android:xlargeScreens="true"/>
 
-    <application android:label="@string/godot_project_name_string" android:icon="@drawable/icon" android:allowBackup="false" $$ADD_APPATTRIBUTE_CHUNKS$$ >
+    <application android:label="@string/godot_project_name_string" android:icon="@drawable/icon" android:allowBackup="false" android:requestLegacyExternalStorage="true" $$ADD_APPATTRIBUTE_CHUNKS$$ >
         <activity android:name="org.godotengine.godot.Godot"
                   android:label="@string/godot_project_name_string"
                   android:theme="@android:style/Theme.NoTitleBar.Fullscreen"