# Failed to open descriptor file (android)

**URL:** <https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113>\
**Category:** Mobile\
**Tags:** error, unreal-engine, crash, failed, Android, question\
**Created:** [June 23, 2020, 3:06am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113 "2020-06-23T03:06:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gotgrassct](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gotgrassct/32/734850_2.png) [@gotgrassct](https://forums.unrealengine.com/u/gotgrassct)\
**Post date:** [June 23, 2020, 3:06am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/1 "2020-06-23T03:06:42Z")

</div>

Whenever i upload my game to Google Play using Android App Bundles, i check the test results it gives me an error saying Failed to open descriptor file.

Why does this happen?

![305166-failed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/2/86232f81224f2afaa0317be88b44e2ffd8d5a12a.png)

---

<div class="post-metadata">

**Author:** ![gotgrassct](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gotgrassct/32/734850_2.png) [@gotgrassct](https://forums.unrealengine.com/u/gotgrassct)\
**Post date:** [June 24, 2020, 6:01pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/2 "2020-06-24T18:01:58Z")

</div>

WILL ANYONE HELP? AM I THE ONLY DEVELOPER WHO WANTS TO UPLOAD THEIR GAME WITH ANDROID APP BUNDLE?

---

<div class="post-metadata">

**Author:** ![anon26858783](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon26858783](https://forums.unrealengine.com/u/anon26858783)\
**Post date:** [July 11, 2020, 10:24pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/3 "2020-07-11T22:24:42Z")

</div>

Same here, though i noticed it only happens when i launch it with ASTC

---

<div class="post-metadata">

**Author:** ![Erock2018.1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erock2018.1](https://forums.unrealengine.com/u/Erock2018.1)\
**Post date:** [August 19, 2020, 10:23am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/4 "2020-08-19T10:23:18Z")

</div>

I have the same problem but only with Arm64 😕 Arm7 works… but … I need arm64 to work also. Sometimes neither works. I assume it has something to do with moving files and copying projects?

---

<div class="post-metadata">

**Author:** ![InfoTrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InfoTrin](https://forums.unrealengine.com/u/InfoTrin)\
**Post date:** [August 27, 2020, 5:19am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/5 "2020-08-27T05:19:21Z")

</div>

so anyone ? no one ? no one want to answer, or we are the only ones that got this Error ? Please Help XD

---

<div class="post-metadata">

**Author:** ![unrealootin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@unrealootin](https://forums.unrealengine.com/u/unrealootin)\
**Post date:** [August 27, 2020, 10:05am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/6 "2020-08-27T10:05:27Z")

</div>

I tried to upload my .apk and .obb but play store only downloads and installs .apk… Should I try the app bundle system? I know this isn’t helping but there is very little support for android here… I am considering UDN just to publish my game already…

---

<div class="post-metadata">

**Author:** ![Thoeme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoeme](https://forums.unrealengine.com/u/Thoeme)\
**Post date:** [August 27, 2020, 8:17pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/7 "2020-08-27T20:17:47Z")

</div>

In my case I had a project under source control, which instead of branching via Perforce I’ve created a copy directly in Explorer. The copied and renamed project always produced the “Failed to open descriptor file…” when built via the launch button in the engine. I was able to create packaged builds but these immediately crashed when I tried to launch the app (also tried to manually add the .obb file).

Then I thought okay back to start and this time I branched the project with Perforce and the project launched perfectly fine. So I think it could possibly be something with copying files and so forth like mentioned by @Erock2018.1. Maybe also with read/write rights on the files.

---

<div class="post-metadata">

**Author:** ![Erock2018.1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erock2018.1](https://forums.unrealengine.com/u/Erock2018.1)\
**Post date:** [August 27, 2020, 10:19pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/8 "2020-08-27T22:19:33Z")

</div>

@thoeme No idea what I done but it works now 😃 I must have switched something off without knowing… now my next problem is a giant native library that I am trying to reduce from 89mb 😕 No idea

---

<div class="post-metadata">

**Author:** ![Thoeme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoeme](https://forums.unrealengine.com/u/Thoeme)\
**Post date:** [August 28, 2020, 4:09pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/9 "2020-08-28T16:09:28Z")

</div>

In my case one of the following two solutions worked:

**Solution 1**

1. Launch project onto device, receive descriptor error
2. Create a packaged build (I was using Multi)
3. Use the .bat files to remove the app from the device
4. Use the .bat file to install the app to the device
5. Launch onto device works again without descriptor file error

**Solution 2**

1. Add _android:requestLegacyExternalStorage=“true”_ to Project Settings - Android - Extra Tags for application node by hitting “+” icon

For both you should make sure that you have removed the Binaries, Intermediate and Saved folders before repackaging / rebuilding your project. Also I was using 4.25.3 and it worked with target SDK set to 29 (which has to be installed - can be easily done with Android Studio)

---

<div class="post-metadata">

**Author:** ![MARLIMAN1307BG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MARLIMAN1307BG](https://forums.unrealengine.com/u/MARLIMAN1307BG)\
**Post date:** [December 2, 2020, 2:24am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/10 "2020-12-02T02:24:20Z")

</div>

Hey i had the same problem, what worked for me was setting the min sdk version to 9, just keep in mind google play requires 29. Hope i helped someone.

---

<div class="post-metadata">

**Author:** ![Flassari](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flassari](https://forums.unrealengine.com/u/Flassari)\
**Post date:** [February 23, 2021, 8:41pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/11 "2021-02-23T20:41:27Z")

</div>

I’ve usually seen this happen when the Executable doesn’t match the Pak file (only one got updated and we forgot to update the other), or if the Pak file is missing completely.

---

<div class="post-metadata">

**Author:** ![ZephyrJoey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZephyrJoey](https://forums.unrealengine.com/u/ZephyrJoey)\
**Post date:** [February 28, 2021, 5:26pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/12 "2021-02-28T17:26:04Z")

</div>

Hi, I encounter the same problem. But now I can bypass this problem by adjusting the packing configuration, so I’m not going to spend more time on this issue. However, maybe the following notes can help further investigations:

1. This problem only occurs to me when the targeting platform is set [API 30] and then click “Launch (on Android)” in the editor. I don’t know why this can happen because my mobile phone supports API 30.

2. Among other attempts, I pack the game (developer/shipping) for Android API 30, and then launch that APK with Android Studio(AS), there’s no error message this time. I also change the targeting API version to 28, there’s no error either launching with UE or AS.

3. With AS, I debugged the APK with “Profile or debug APK”. Several APK’s exist in my disk: the packed APK locates in the specified folder, without much doubt; whereas another APK is generated in the UE project folder as the result of “Launch” in the UE editor, it is placed at “xxx/Binaries/Android/xxx.apk”. When I debug this APK, which is generated by “Launch” in UE with API 30, the error occurs. (So the APK is problematic?)

4. Through debug, the problem arises when opening the .uproject file (obvious), at

- LaunchEngineLoop.cpp Line 2012  
if (!IProjectManager::Get().LoadProjectFile(FPaths::GetProjectFilePath()))

- FileHelper.cpp Line 192  
TUniquePtr Reader(IFileManager::Get().CreateFileReader(Filename, ReadFlags));

The reader object is null, hence the error.

In debug sessions of both working and problematic APK’s, the “FileName” to open is “…/…/…/FpsDemo.uproject”, one just opens and reads whereas the other fails. I don’t see the reason, so I leave the problem here.

1. I suspect this may either be an access permission problem, or the UE launch for Android API 30 fails to transmit components to the device. I didn’t repeat the test on other mobile phones, so this can also be caused by my device…

Hope this helps!

---

<div class="post-metadata">

**Author:** ![vokama](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vokama](https://forums.unrealengine.com/u/vokama)\
**Post date:** [August 25, 2022, 11:35pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/13 "2022-08-25T23:35:50Z")

</div>

This response saved me, thank you. Not sure how changing texture format has to do anything with app not being able to access its project file.

Update: changed texture format might have been unrelated to the solution, since selecting it didn’t fix the issue for another project. Instead setting the “Package game data inside .apk?” option to true seemed to yield reliably positive results.

---

<div class="post-metadata">

**Author:** ![Jdiab12071](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jdiab12071](https://forums.unrealengine.com/u/Jdiab12071)\
**Post date:** [October 8, 2022, 4:47pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/14 "2022-10-08T16:47:37Z")

</div>

How do you remove the binaries, intermediate, and saved folders from your phone? I did it a while back though the command prompt but I forgot how I did it.

---

<div class="post-metadata">

**Author:** ![Thoeme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoeme](https://forums.unrealengine.com/u/Thoeme)\
**Post date:** [October 10, 2022, 9:48am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/15 "2022-10-10T09:48:05Z")

</div>

Hi there. I wrote a little .bat file to delete the app from a device. This covers both cases for apps created with Unreal Engine 4 & 5 (since the path on the device changed slightly). You can either use the bat file or you should be able to select the lines relevant to you. Basically the .bat file tells you what you have to enter, since my knowledge of CMD wasn’t enough to fully automate the process. Hope that helps!

* * *

@anonymous_user_add01a93 on

set AndroidSDKToolsPath = “C:\YOURPATH\Android\Sdk\platform-tools”

@anonymous_user_add01a93 off  
echo Please enter the name of the app (name of UE Project - i.e. MyUnrealGame)  
set /p AppName=“”

:choice  
@anonymous_user_add01a93 off  
echo Was the app created with Unreal Engine 4 or 5 ? (4/5)  
set /P c=“”  
if /I “%c%” EQU “4” goto :UnrealEngine4  
if /I “%c%” EQU “5” goto :UnrealEngine5  
goto :choice

:UnrealEngine4  
@anonymous_user_add01a93 on  
cd /d %AndroidSDKToolsPath%  
@anonymous_user_add01a93 off  
echo “Enter: cd sdcard/UE4Game”  
echo “Enter: rm -r %AppName%”  
adb shell  
echo finished

:UnrealEngine5  
@anonymous_user_add01a93 on  
cd /d %AndroidSDKToolsPath%  
@anonymous_user_add01a93 off  
echo “Enter: cd sdcard/UnrealGame”  
echo “Enter: rm -r %AppName%”  
adb shell  
echo finished

rem In case you have a permission denied error, try to use the ‘adb root’ command

rem cd /d %AndroidSDKToolsPath%  
rem adb root

---

<div class="post-metadata">

**Author:** ![italox1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/italox1/32/630335_2.png) [@italox1](https://forums.unrealengine.com/u/italox1)\
**Post date:** [November 13, 2022, 6:43pm UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/16 "2022-11-13T18:43:16Z")

</div>

I don’t know if this will help someone but, in my case, after upload the shipping version of the game to Google Play, starts appear the error of descriptor file when I tried to test the game with Launch Button and with package too, **so my solution was disabling Generate bundle (AAB)** and works fine for me.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/c/e5c1cdac466f7507e8702cc19ff592e5cb3cfdd3.png)

---

<div class="post-metadata">

**Author:** ![eternalme](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eternalme/32/474875_2.png) [@eternalme](https://forums.unrealengine.com/u/eternalme)\
**Post date:** [November 30, 2022, 10:10am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/17 "2022-11-30T10:10:20Z")

</div>

Have same issue, but I guess its because of:

```auto
LogPlayLevel: UAT: Attempting to connect to file server [USB]
LogPlayLevel: UAT: Not connected, attempting to start file server
LogPlayLevel: UAT: Did not find a bind listener
LogPlayLevel: UAT: Trying again
LogPlayLevel: UAT: Did not find a bind listener
LogPlayLevel: Warning: UAT: WARNING: Failed to start Android file server for com.YourCompany.jaka, skipping deploy for BV9100EEA00036317

```

In what mode I need to connect the phone?

USB debug mode is on.

---

<div class="post-metadata">

**Author:** ![Scott\_Yuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Scott\_Yuan](https://forums.unrealengine.com/u/Scott_Yuan)\
**Post date:** [December 12, 2022, 1:26am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/18 "2022-12-12T01:26:46Z")

</div>

With 5.0+, the fix I’ve found is to not use Andriod File Server mode but directly using adb.exe for deployment. Hopefully, this helps.

---

<div class="post-metadata">

**Author:** ![keiko\_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@keiko\_2](https://forums.unrealengine.com/u/keiko_2)\
**Post date:** [December 14, 2022, 8:13am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/19 "2022-12-14T08:13:09Z")

</div>

so how can i use adb.exe with 4.0+ to fix this problem? thanks

---

<div class="post-metadata">

**Author:** ![D\_Deng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d_deng/32/758117_2.png) [@D\_Deng](https://forums.unrealengine.com/u/D_Deng)\
**Post date:** [February 14, 2023, 12:44am UTC](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113/20 "2023-02-14T00:44:46Z")

</div>

@Erock2018.1 and @Thoeme are right. Took me a lot of tinkering, trial and error, but the main issue is duplicating the project. Whether it be through unreal or in windows explorer, if you change the names of the file, existing blueprints, meshes, textures etc. in the new duplicated project it’ll cause this issue.

The best solution is sticking with the naming used in the file, blueprints, textures, meshes etc. But if it is necessary to change the name make sure you do the following:

- As @Thoeme mentioned, delete the entire ‘Binaries’, ‘Intermediate’ and ‘Saved’ (except the ‘Config’ file in ‘Saved’) folders in windows explorer (wherever you have saved your project)

- Go through every remaining folder and edit the necessary .ini (configuration files) via notepad and make sure the referenced blueprints, file name, texture, mesh files etc. (whatever has been changed) matches

- Once everything is changed/updated, reopen the project file in unreal and under ‘Project Settings’ - ‘Android’, you’ll have to reclick ‘Configure Now’ for the ‘APK Packaging’ and ‘Google Play Services’

- Save and try quick launch to mobile again. The error should disappear

Hope this helps

\*Edit: This worked for me in UE5.1.1. I haven’t tried this in prior versions

[Next page](https://forums.unrealengine.com/t/failed-to-open-descriptor-file-android/467113.md?page=2)
