Android Packaging Error - Gradle Nightmare - PLEASE HELP

Hi people please HELP with this one,

Basically, I’m getting an error below when trying to test a game on Android :

ERROR: cmd.exe failed with args /c “C:\Users/…\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug

I tested the same game 2 days ago on my phone and it worked. Then suddenly, just simply stopped with the above error message.

Im using 4.26 version and please see below the rest of the wonderful error messages Im getting when trying to test my game

FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: Execution failed for task ‘:app:packageDebug’.
LogPlayLevel: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
LogPlayLevel: > Entry name ‘META-INF/android.arch.lifecycle_extensions.version’ collided
LogPlayLevel: * Try:
LogPlayLevel: 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.
LogPlayLevel: * Get more help at https://help.gradle.org
LogPlayLevel: BUILD FAILED in 8s

PLEASE HELP WITH THIS

For me running UE4 as administrator in Windows always solves the gradle issues. Maybe that will work for you too.

1 Like

Hei dude, thanks for the answer.

I’ve sorted it by just deleting the INTERMEDIATE folder and then re-do it and it worked.

1 Like