Gradle issue I think

Within Processing for android, I recently use the sdk updater. Since that update, I have not had a successful build on a sketch that was working on both the emulator and a device. The only thing I had done was the sdk updater. The error stream high mentions Gradle and suggests checking the website. I don’t understand Gradle enough. Can anyone help make it clearer for me?
Thanks all

@markcosmic ===
what have you updated???

In Android mode, under the Android menu heading is SDK updater. I’m not sure which SDK the updater updates. Every so often I check for updates. If they’re available I update. The recent update causes the build to fail. This is the beginning of the error stream:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

java.lang.RuntimeException: java.lang.RuntimeException: Unable to merge dex

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at

22 actionable tasks: 22 executed
org.gradle.tooling.BuildException: Could not execute build using Gradle distribution ‘’.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(
at org.gradle.internal.concurrent.ManagedExecutorImpl$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.gradle.internal.concurrent.ThreadFactoryImpl$
at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(
Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

Ok, I managed to fix this issue. I did a fresh Processing 3 install and uninstalled the libraries involved with the sketch and reinstalling them.

1 Like