FAILURE: Build failed with an exception

Hi, new DAB user here (Oh, Hi Ian!),

Still just starting to learn how to build a dictionary app with DAB. My first attempts have come up with build fails. Here is my build log:

*** DICTIONARY APP BUILDER ***
*** 8.6.6 ***

*** Building Android app ***

App Project: Wunambal Dictionary
App Name: Wunambal Dictionary
App Version: 1.0
Package: au.org.wunambalgaambera.wub.dictionary
Apk Filename: Wunambal_Dictionary-1.0.apk

Grandroid: No
Analytics: No
Expiry: No
App Builder: /Applications/Dictionary App Builder.app/Contents/Resources/Java

*** Setting paths ***

JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
ANDROID_HOME=/Users/jkllee/Library/Android/sdk
GRADLE_HOME=/Applications/Dictionary App Builder.app/Contents/Resources/Java/tools/gradle
MAVEN_HOME=/Applications/Dictionary App Builder.app/Contents/Resources/Java/tools/maven

PATH=/Applications/Dictionary App Builder.app/Contents/Resources/Java/tools/maven/bin:/Applications/Dictionary App Builder.app/Contents/Resources/Java/tools/gradle/bin:/Users/jkllee/Library/Android/sdk/tools:/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Library/Apple/usr/bin

*** JDK ***

openjdk version “1.8.0_332”
OpenJDK Runtime Environment (Zulu 8.62.0.19-CA-macosx) (build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (Zulu 8.62.0.19-CA-macosx) (build 25.332-b09, mixed mode)

*** Android SDK ***

Target Android Platform: Android 10 (API 29)
Minimum Android Platform: Android 5.0 Lollipop (API 21)
SDK Tools Version: cmdline-tools 6.0
SDK Build Tools Version: 32.0.0
SDK Platform Tools Version: 33.0.1

*** Compiling Android APK ***

  • gradle clean assembleRelease --warning-mode=none

FAILURE: Build failed with an exception.

  • What went wrong:
    org.slf4j.impl.Log4jLoggerAdapter cannot be cast to org.gradle.api.logging.Logger

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to org.gradle.api.logging.Logger
    at org.gradle.api.logging.Logging.getLogger(Logging.java:39)
    at org.gradle.launcher.cli.DebugLoggerWarningAction.(DebugLoggerWarningAction.java:57)
    at org.gradle.launcher.cli.DefaultCommandLineActionFactory$WithLogging.execute(DefaultCommandLineActionFactory.java:253)
    at org.gradle.launcher.Main.doAction(Main.java:35)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:50)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:31)

  • Get more help at https://help.gradle.org
    ls: /var/folders/y_/2dy0h7ln1hdbtps_6ljkf5780000gn/T/App Builder/build/DAB.001/a/build/outputs/apk/release: No such file or directory

BUILD FAILED:
The signed apk was not built successfully. This could be due to an internet connection problem. On the first build, the compiler needs to connect to the internet to download some library files.

Copying log to output folder

Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

[Process completed]

Your DAB is old. The current version is 9.3.

I’d update to that and update the Android SDK.

Check that your keystore is correct.