cancel
Showing results for 
Search instead for 
Did you mean: 

Issue packaging android ASTC

Ozua
Level 2

HI everyone, i had this noobie trouble:

UEDeployAndroid.FilterStdOutErr: FAILURE: Build failed with an exception.
UEDeployAndroid.FilterStdOutErr: 
UEDeployAndroid.FilterStdOutErr: * What went wrong:
UEDeployAndroid.FilterStdOutErr: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
UEDeployAndroid.FilterStdOutErr: > Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
UEDeployAndroid.FilterStdOutErr: 
UEDeployAndroid.FilterStdOutErr: * Try:
UEDeployAndroid.FilterStdOutErr: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
UEDeployAndroid.FilterStdOutErr: 
UEDeployAndroid.FilterStdOutErr: * Get more help at https://help.gradle.org
UEDeployAndroid.FilterStdOutErr: 
UEDeployAndroid.FilterStdOutErr: BUILD FAILED in 11s
Log.WriteException: ==============================================================================
Log.WriteException: ERROR: cmd.exe failed with args /c "D:\UNREAL\projects\QLX01\LX01\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
Log.WriteException:        (see C:\Users\alvar\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\Log.txt for full exception trace)
Log.WriteException: 
Log.WriteException: BuildException: cmd.exe failed with args /c "D:\UNREAL\projects\QLX01\LX01\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
Log.WriteException:    em UnrealBuildTool.UEDeployAndroid.RunCommandLineProgramWithExceptionAndFiltering(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute) na D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:linha 1551
Log.WriteException:    em UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, TargetType InTargetType, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, UnrealTargetConfiguration Configuration, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir, Boolean bSkipGradleBuild) na D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:linha 3977
Log.WriteException:    em UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, DirectoryReference ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, UnrealTargetConfiguration Configuration, Boolean bIsDataDeploy, Boolean bSkipGradleBuild) na D:\Build\++UE4\Sync\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:linha 4568
Log.WriteException:    em AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs:linha 707
Log.WriteException:    em Project.Package(ProjectParams Params, Int32 WorkingCL) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\PackageCommand.Automation.cs:linha 35
Log.WriteException:    em BuildCookRun.DoBuildCookRun(ProjectParams Params) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:linha 217
Log.WriteException:    em BuildCookRun.ExecuteBuild() na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:linha 39
Log.WriteException:    em AutomationTool.BuildCommand.Execute() na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:linha 263
Log.WriteException:    em AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:linha 547
Log.WriteException:    em AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:linha 511
Log.WriteException:    em AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:linha 175
Log.WriteException:    em AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:linha 87
Log.WriteException:    em AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:linha 737
Log.WriteException:    em AutomationTool.Program.Main(String[] Arguments) na D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:linha 87
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

Can anybody give me a tip?
tnxxx

4 REPLIES 4

apo0o
Level 2

getting gradle working is a pain..

in my opinion the problem is the android sdk

first you should specify which version of unreal you are working with because the ndk version to use changes.
https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Mobile/Android/Setup/AndroidStudio/

I advise you to look on youtube, because between settings for optimization (for example I think it is better to use arm64), folders to delete, and things to check is a fairly complex topic and I don't think there could be a tutorial that leads you to the solution, just because the variables involved are many.

 

https://www.youtube.com/watch?v=m5-xtICFOvI&t=331s

https://www.youtube.com/watch?v=nd9p8R7OOoA&t=376s

https://www.youtube.com/watch?v=jMkl5FdtvP8

Ozua
Level 2

hey! Tnx apoOo!! Im going to have a look at those topics, but i tryed a second setup, this time folowing the Oculus Developer docs. It crashes once more , but i received a better looking log. 
Whitin few days im gonna tell you i scored!
thanx

Hi  apoOo,
i did that!
i've already deployed 6 test versions , having issues, but in a track.
thanks for your help

 

that's cool!!