Download

UE4.25 Build Failled: ANDROID_BUILD_TOOLS_GRADLE_VERSION

BUG:

Did i do something wrong? or its a Pre-release bug?

-UE4.25 Preview 3
-Packaging Android ETC2

The Setup:
https://www.unrealengine.com/en-US/t…al-engine-4-25

LOG:
ProcessResult.StdOut: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
ProcessResult.StdOut: Making .aab with Gradle…
ProcessResult.StdOut: To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/5.4.1/usergu…le_daemon.html.
ProcessResult.StdOut: Daemon will be stopped at the end of the build stopping after processing
ProcessResult.StdOut:
ProcessResult.StdOut: FAILURE: Build failed with an exception.
ProcessResult.StdOut:
ProcessResult.StdOut: * Where:
ProcessResult.StdOut: Build file ‘Z:\build.gradle’ line: 21
ProcessResult.StdOut:
ProcessResult.StdOut: * What went wrong:
ProcessResult.StdOut: A problem occurred evaluating root project ‘app’.
ProcessResult.StdOut: > Could not get unknown property ‘ANDROID_BUILD_TOOLS_GRADLE_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
ProcessResult.StdOut:
ProcessResult.StdOut: * Try:
ProcessResult.StdOut: 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.
ProcessResult.StdOut:
ProcessResult.StdOut: * Get more help at https://help.gradle.org
ProcessResult.StdOut:
ProcessResult.StdOut: BUILD FAILED in 5s
ProcessResult.StdOut: ERROR: cmd.exe failed with args /c “D:\MyGame\MyProject\Intermediate\Android\gradle\rungradle.bat” :app:bundleDebug

Ahh i see… Only 1min after my posts :smiley: LOL

in** build.gradle** its called -> "ANDROID_BUILD_TOOLS_GRADLE_VERSION"
in** gradle.properties **its called -> "ANDROID_TOOLS_BUILD_GRADLE_VERSION"

Maybe that the problem i will check!

Fixe

  • Add to gradle properties -> ANDROID_BUILD_TOOLS_GRADLE_VERSION=com.android.tools.build:gradle:3.5.3

Having the same issue-can’t test 4.25.0 pX on the Quest.
I think you’re on to something here. But how is it fixed? When making a new build a new gradle.properties file is created by UE so the build stops with the same error…

You can fixe it, by adding -> ANDROID_BUILD_TOOLS_GRADLE_VERSION=com.android.tools.build:gradle:3.5.3 to gradle propeties

In **MyProject.Build.cs **(Location D:\MyGame\MyProject\Source\MyProject\MyProject.Build.cs)

1. Add all code in red*

*

2. Create a .XML file name Extra_UPL_.xml
Capture.PNG

3. In The .XML file copy/paste this

<?xml version=“1.0” encoding=“utf-8”?>
<!-- XML →
<root xmlns:android=“http://schemas.android.com/apk/res/android”>
<!-- Gradle Properties →
<gradleProperties>
<insert>
ANDROID_BUILD_TOOLS_GRADLE_VERSION=com.android.tools.build:gradle:3.5.3
</insert>
</gradleProperties>
</root>