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?
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?
WILL ANYONE HELP? AM I THE ONLY DEVELOPER WHO WANTS TO UPLOAD THEIR GAME WITH ANDROID APP BUNDLE?
Same here, though i noticed it only happens when i launch it with ASTC
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?
so anyone ? no one ? no one want to answer, or we are the only ones that got this Error ? Please Help XD
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ā¦
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.
@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
In my case one of the following two solutions worked:
Solution 1
Solution 2
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)
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.
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:
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.
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.
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?)
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.
Hope this helps!
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.
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.
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.
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!
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
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.
Have same issue, but I guess its because of:
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.
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.
so how can i use adb.exe with 4.0+ to fix this problem? thanks
@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