Error Packaging For Android.

Hello,

I have a problem with packaging the project for Android (I tested it with Window and it worked 100%), The error is the following one:

UATHelper: Empaquetado (Android (ETC1)): AARImports: com.android.support, support-v13, 25.2.0
UATHelper: Empaquetado (Android (ETC1)): AARImports: com.google.android.gms, play-services-ads, 11.0.4
UATHelper: Empaquetado (Android (ETC1)): ====7/3/2018 10:21:06 p.m.====PREPARING NATIVE CODE=================================================================
UATHelper: Empaquetado (Android (ETC1)): On build machine.
UATHelper: Empaquetado (Android (ETC1)): Fixing minSdkVersion; requires minSdkVersion of 14 with Gradle based on active plugins
UATHelper: Empaquetado (Android (ETC1)): Copying permission_library directory to staging before build
UATHelper: Empaquetado (Android (ETC1)): Directory F:\UnrealEngine4\UE_4.18/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to C:\Users\China\Documents\Unreal Projects\ImmortalShadow\Intermediate/Android/APK/JavaLibs/permission_library
UATHelper: Empaquetado (Android (ETC1)): ==== Writing new GameActivity.java file to C:\Users\China\Documents\Unreal Projects\ImmortalShadow\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Empaquetado (Android (ETC1)): Copying new .so F:\UnrealEngine4\UE_4.18\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder…
UATHelper: Empaquetado (Android (ETC1)): Preparing native code for debugging…
UATHelper: Empaquetado (Android (ETC1)): File F:\UnrealEngine4\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/libvrapi.so copied to C:\Users\China\Documents\Unreal Projects\ImmortalShadow\Intermediate/Android/APK/libs/armeabi-v7a/libvrapi.so
UATHelper: Empaquetado (Android (ETC1)): Copying libOVRPlugin.so
UATHelper: Empaquetado (Android (ETC1)): File F:\UnrealEngine4\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to C:\Users\China\Documents\Unreal Projects\ImmortalShadow\Intermediate/Android/APK/libs/armeabi-v7a/libOVRPlugin.so
UATHelper: Empaquetado (Android (ETC1)): File F:\UnrealEngine4\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar copied to C:\Users\China\Documents\Unreal Projects\ImmortalShadow\Intermediate/Android/APK/libs/VrApi.jar
UATHelper: Empaquetado (Android (ETC1)): File F:\UnrealEngine4\UE_4.18/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar copied to C:\Users\China\Documents\Unreal Projects\ImmortalShadow\Intermediate/Android/APK/libs/SystemUtils.jar
UATHelper: Empaquetado (Android (ETC1)): ====7/3/2018 10:21:30 p.m.====PERFORMING FINAL APK PACKAGE OPERATION================================================
UATHelper: Empaquetado (Android (ETC1)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Y:)
UATHelper: Empaquetado (Android (ETC1)): Making .apk with Gradle…
UATHelper: Empaquetado (Android (ETC1)): Downloading https://services.gradle.org/distribu…2.14.1-all.zip
LogHttp: Warning: 0000022E11C7FE80: request failed, libcurl error: 6 (Couldn’t resolve host name)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 0 (Found bundle for host datarouter.ol.epicgames.com: 0x22e098cb040 [can pipeline])
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 1 (Re-using existing connection! (#71) with host datarouter.ol.epicgames.com)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 2 (Connected to datarouter.ol.epicgames.com (34.206.112.122) port 443 (#71))
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 3 (upload completely sent off: 369 out of 369 bytes)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 4 (SSL read: error:00000000:lib(0):func(0):reason(0), errno 10053)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 5 (Connection died, retrying a fresh connect)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 6 (Closing connection 71)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 7 (Issue another request to this URL: ‘https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?SessionID={1BC841BC-4543-D081-A73F-8591FD722EEA}&AppID=UEEditor.Rocket.Release&AppVersion=4.18.3-3832480%2B%2B%2BUE4%2BRelease-4.18&UserID=d7e377174d9629f2da19a3ac79ea4448|bfde3c3867784e
8ba1c9f6de061d03b1%7Ced2490c4-b24c-4e20-80de-c3875354ba8f&AppEnvironment=datacollector-binary&UploadType=eteventstream’)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 8 (Could not resolve host: datarouter.ol.epicgames.com)
LogHttp: Warning: 0000022E11C7FE80: libcurl info message cache 9 (Closing connection 72)

I Tried two times (Including this time) packaging the project for android and both times show the same error except than the first one was another number (Cache 37, something like that) with the same yellow color and red. Actually i don’t know what is it.

My project doesn’t have the publisher name, licensed, etc because what i’m trying to do is to see how much is the size of my project when is packaged, like a test.

NOTE: Although it show the errors, but the packaging process doesn’t show like Canceled (I don’t know if it shows) but when the erros show, it only stuck there without updating more.

Please help me since this is one of the last step for my game.

EDIT: Added some extra output log. And new information: Although i’m not sure, but in the process of packaging, i think i lost connection to internet. I don’t know if there is something related.

It looks that your editor doesn’t have access to the internet. Check your internet connection and firewall options.

Thanks for the answer, i may try it again. I never though that the editor still need access to internet.

Yes, it needs to download Gradle build tool necessary for building for Android.