# Problem saving to Android. Manifest and maxSdkVersion="18"

**URL:** <https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603>\
**Category:** Editor Scripting\
**Tags:** savegame, manifest, gradle, permission, unreal-engine, Android, question\
**Created:** [November 2, 2017, 9:46pm UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603 "2017-11-02T21:46:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rusel2050](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rusel2050](https://forums.unrealengine.com/u/Rusel2050)\
**Post date:** [November 2, 2017, 9:46pm UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/1 "2017-11-02T21:46:03Z")

</div>

After I updated my project on UE4.18, there were some problems. As soon as I understood the packaging of Gradle, I found that I do not have save jobs in a packed version. Next, I found that the new version defaults to

`uses-permission      android: name = "android.permission.WRITE_EXTERNAL_STORAGE"      android: maxSdkVersion = "18" /`

Because of this, the engine can not save the game. The official Android website says that the application can modify files in its folder without the need to enable the resolution for SDK versions \>=18. I think that the engine saves the files not in the application folder, and can not access.

I was trying to set up permissions with this: [Android Permissions Problems - Mobile Development - Unreal Engine Forums](https://forums.unrealengine.com/development-discussion/android-development/110935-android-permissions-problems?138161-Android-Permissions-Problems=) Nothing came of it. Perhaps there is another way? Perhaps there is a way to change the save folder to Android? I think the easiest way is to change the manifest file and cut it: "android: maxSdkVersion =“18"”.

---

<div class="post-metadata">

**Author:** ![Rusel2050](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rusel2050](https://forums.unrealengine.com/u/Rusel2050)\
**Post date:** [November 3, 2017, 1:16am UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/2 "2017-11-03T01:16:06Z")

</div>

The problem was solved by including “Use ExternalFilesDir for UE4Game files” in the project settings

---

<div class="post-metadata">

**Author:** ![DarkBouffeur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkBouffeur](https://forums.unrealengine.com/u/DarkBouffeur)\
**Post date:** [July 18, 2018, 9:50pm UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/3 "2018-07-18T21:50:35Z")

</div>

Thank you so much for this.

---

<div class="post-metadata">

**Author:** ![Saiful22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saiful22](https://forums.unrealengine.com/u/Saiful22)\
**Post date:** [January 25, 2021, 10:03am UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/4 "2021-01-25T10:03:21Z")

</div>

Thanks Brother, You solve my problem. Now game save work on android

---

<div class="post-metadata">

**Author:** ![HerrDrFink](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/herrdrfink/32/1056917_2.png) [@HerrDrFink](https://forums.unrealengine.com/u/HerrDrFink)\
**Post date:** [February 24, 2021, 7:56am UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/5 "2021-02-24T07:56:55Z")

</div>

This does not work for me…

---

<div class="post-metadata">

**Author:** ![Superbat2018](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Superbat2018](https://forums.unrealengine.com/u/Superbat2018)\
**Post date:** [September 10, 2021, 1:41pm UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/6 "2021-09-10T13:41:44Z")

</div>

Thanks bro,this also solved the “android can’t save high scores problem”.

---

<div class="post-metadata">

**Author:** ![avisidhu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@avisidhu](https://forums.unrealengine.com/u/avisidhu)\
**Post date:** [November 20, 2021, 9:50am UTC](https://forums.unrealengine.com/t/problem-saving-to-android-manifest-and-maxsdkversion-18/408603/7 "2021-11-20T09:50:39Z")

</div>

This isn’t working for me.

“Save Game to Slot” Blueprint Node works fine in the UE4 Editor but returns false when packaged and installed on the android device.

Here are the details:

UE4.25.3

Android Minimum SDK: 19

Android Target SDK: 30

Install Location: Internal Only

Package Game Data inside .apk? - Checked

Use ExternalFilesDir for UE4Game files - Checked

Packaged Development Build with Project Launcher

Tried both - manually copied apk to device and installed/used bat file to install directly from pc

Android Device: Xiamoi Redmi Note 8 Pro

OS: MIUI 12.5.3

Android Version 11

You can also create a fresh project and package it with these settings. You’ll see that the “Save Game to Slot” works in editor but fails on Android.
