Description

Blueprint Projects can't make APK without compiled .so Error when packaging for Android with any Plugin Disabled. Also seeing Gradle errors if SteamVR plugin is disabled.

Setting min version to 14 or enabling bPackageDataInsideApk causes no change

Tested with Pixel XL (8.0)

Forums: https://forums.unrealengine.com/development-discussion/android-development/1519174-4-20-2-can-t-make-apk-without-compiled-so-for-all-4-20-projects

Also failed to build in Main @ CL 4329255

Steps to Reproduce
  1. Create a new 4.20 Blueprint Project. (Optionally selecting Mobile/Scalable settings)
  2. Save map, set to startup map in project settings
  3. Connect an Android device and launch onto device to verify functionality
  4. Disable a plugin and restart editor (I disabled Paper2D in my 4.20 test)
  5. Attempt to launch on device again

Result: 

LogDirectoryWatcher: Warning: Failed to begin reading directory changes for ../../../../../../Projects/AJ_GearVRso/Plugins/. Error: The system cannot find the file specified. (0x00000002)

+

LogPlayLevel: ====9/5/2018 1:41:17 PM====PREPARING NATIVE CODE=================================================================
LogPlayLevel: APK contains data.
LogPlayLevel: ==== Writing new GameActivity.java file to D:\Projects\AJ_GearVRso\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
LogPlayLevel: ERROR: Can't make an APK without the compiled .so [D:\Projects\AJ_GearVRso\Binaries\Android\AJ_GearVRso-armv7-es2.so]
LogPlayLevel: (see C:\Users\User.Name\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_4.20\Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 4.258451
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error
LogSlate: FSceneViewport::OnFocusLost() reason 0

4.21 4329255 (cpp?) 

LogPlayLevel: ********** BUILD COMMAND STARTED **********
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 6.775941
LogPlayLevel: Running: D:\Main\Engine\Binaries\DotNET\UnrealBuildTool.exe UnrealPak Win64 Development -Project="D:\Projects\AJ_GearVRso 4.21\AJ_GearVRso.uproject" -generatemanifest -nobuilduht -xgeexport "D:\Projects\AJ_GearVRso 4.21\AJ_GearVRso.uproject" -NoUBTMakefiles -NoHotReload -log="D:\Main\Engine\Programs\AutomationTool\Saved\Logs\UBT-UnrealPak-Win6
4-Development.txt"
LogPlayLevel: ERROR: Couldn't find target rules file for target 'UnrealPak' in rules assembly 'AJ_GearVRsoModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
LogPlayLevel: Location: D:\Projects\AJ_GearVRso 4.21\Intermediate\Build\BuildRules\AJ_GearVRsoModuleRules.dll
LogPlayLevel: Target rules found:
LogPlayLevel: AJ_GearVRso - D:\Projects\AJ_GearVRso 4.21\Intermediate\Source\AJ_GearVRso.Target.cs
LogPlayLevel: (see D:\Main\Engine\Programs\AutomationTool\Saved\Logs\UBT-UnrealPak-Win64-Development.txt for full exception trace)
LogPlayLevel: Took 0.3869243s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: ERROR: UnrealBuildTool failed. See log for more details. (D:\Main\Engine\Programs\AutomationTool\Saved\Logs\UBT-UnrealPak-Win64-Development.txt)
LogPlayLevel: (see D:\Main\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=5 (5)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 0.000037
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error
LogSlate: FSceneViewport::OnFocusLost() reason 0

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-63725 in the post.

33
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.20.24.21
Target Fix4.21
Fix Commit4496292
Main Commit4551290
Release Commit4496292
CreatedSep 5, 2018
ResolvedOct 22, 2018
UpdatedSep 16, 2019
View Jira Issue