#Mobile build fails (Arch Linux, Android Emulator)

5 messages · Page 1 of 1 (latest)

daring basin
#

Everything goes well, but towards the end after everything compiles and it starts building the android package itself I get this:

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/home/inno/code/projects/mobile-test/src-tauri/gen/android/settings.gradle' (/home/inno/.gradle/caches/8.0/scripts/64l9w5qwzugywvrp82t9bxfet).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64

* Try:
> 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
       Error Failed to assemble APK: command ["/home/inno/code/projects/mobile-test/src-tauri/gen/android/gradlew", "--project-dir", "/home/inno/code/projects/mobile-test/src-tauri/gen/android"] exited with code 1
#

This is on the absolute latest which I believe is alpha .14

#

Fortunately, looks like my jdk version was too up to date. Required to downgrade to 17

#

And it all builds. Excellent

#

so painless compared to the earlier versions. This is really cool