x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Crash While Packaging For Android

I tried to package my game for Android and it crashed with an unknown error. Here's the log file

 UATHelper: Packaging (Android (ETC2)): ====12/21/2017 4:00:01 PM====PERFORMING FINAL APK PACKAGE OPERATION================================================
 UATHelper: Packaging (Android (ETC2)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
 UATHelper: Packaging (Android (ETC2)): Making .apk with Gradle...
 UATHelper: Packaging (Android (ETC2)): Downloading https://services.gradle.org/distributions/gradle-2.14.1-all.zip
 UATHelper: Packaging (Android (ETC2)): .................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ........................................................................................................................................................................................................................................................................................................................................................................
 ..........................................................................................................................................................................................................................................................
 UATHelper: Packaging (Android (ETC2)): Unzipping C:\Users\jgols\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip to C:\Users\jgols\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv
 UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception.
 UATHelper: Packaging (Android (ETC2)): * What went wrong:
 UATHelper: Packaging (Android (ETC2)): Could not determine java version from '9.0.1'.
 UATHelper: Packaging (Android (ETC2)): * Try:
 UATHelper: Packaging (Android (ETC2)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c "G:\Unreal Projects\Android_Test\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug
 UATHelper: Packaging (Android (ETC2)):        (see C:\Users\jgols\AppData\Roaming\Unreal Engine\AutomationTool\Logs\G+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
 UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
 UATHelper: Packaging (Android (ETC2)): BUILD FAILED
 PackagingResults: Error: Unknown Error

I noticed that there was a problem with determining the java version so I checked the SDK to make sure it was installed properly and that the engine was looking at the right path and everything seemed okay.

Second build:

 UATHelper: Packaging (Android (ETC2)): ====12/22/2017 1:04:02 PM====PREPARING NATIVE CODE=================================================================
     UATHelper: Packaging (Android (ETC2)): On build machine.
     UATHelper: Packaging (Android (ETC2)): Copying permission_library directory to staging before build
     UATHelper: Packaging (Android (ETC2)): Directory G:\Program Files\Epic Games\UE_4.18/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to G:\Unreal Projects\Android_Test\Intermediate/Android/APK/JavaLibs/permission_library
     UATHelper: Packaging (Android (ETC2)): ====12/22/2017 1:04:03 PM====UPDATING BUILD CONFIGURATION FILES====================================================
     UATHelper: Packaging (Android (ETC2)): **************************************************************************
     UATHelper: Packaging (Android (ETC2)): The "android" command is deprecated.
     UATHelper: Packaging (Android (ETC2)): For manual SDK, AVD, and project management, please use Android Studio.
     UATHelper: Packaging (Android (ETC2)): For command-line tools, use tools\bin\sdkmanager.bat
     UATHelper: Packaging (Android (ETC2)): and tools\bin\avdmanager.bat
     UATHelper: Packaging (Android (ETC2)): **************************************************************************
     UATHelper: Packaging (Android (ETC2)): Invalid or unsupported command "--silent update lib-project --path JavaLibs/downloader_library --target android-27"
     UATHelper: Packaging (Android (ETC2)): Supported commands are:
     UATHelper: Packaging (Android (ETC2)): android list target
     UATHelper: Packaging (Android (ETC2)): android list avd
     UATHelper: Packaging (Android (ETC2)): android list device
     UATHelper: Packaging (Android (ETC2)): android create avd
     UATHelper: Packaging (Android (ETC2)): android move avd
     UATHelper: Packaging (Android (ETC2)): android delete avd
     UATHelper: Packaging (Android (ETC2)): android list sdk
     UATHelper: Packaging (Android (ETC2)): android update sdk
     UATHelper: Packaging (Android (ETC2)): ERROR: F:/Android/android-sdk/tools/android.bat failed with args --silent update lib-project --path JavaLibs/downloader_library --target android-27
     UATHelper: Packaging (Android (ETC2)):        (see C:\Users\jgols\AppData\Roaming\Unreal Engine\AutomationTool\Logs\G+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
     UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
     UATHelper: Packaging (Android (ETC2)): BUILD FAILED
     PackagingResults: Error: Unknown Error
 

Product Version: UE 4.18
Tags:
more ▼

asked Dec 22 '17 at 05:09 AM in Packaging & Deployment

avatar image

kidarole1203
40 3 8 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Try packaging with ANT. Should at least provide further clues

more ▼

answered Dec 22 '17 at 05:31 PM

avatar image

rcortese
66 6 6

avatar image kidarole1203 Dec 22 '17 at 08:22 PM

I tried the build again but with ANT and it crashed again. I put the log above.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question