I am using svelte to build a web app and will use capacitor to build into an android apk.
I have ran the following commands:
npm install @capacitor/cli @capacitor/core
npx cap init
npm install @capacitor/android
npx cap add android
npx cap copy android
cd android
./gradlew assembleDebug
However I get this error:
Could not open settings generic class cache for settings file '/mnt/Windows10/Users/joe/Desktop/some programs/Projects/wheres_my_car/android/settings.gradle' (/home/joe/.gradle/caches/8.2.1/scripts/er3mpjmafek4dm6hp4m5k0z22).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 417ms
I am not too sure if I am missing something from capacitor etc?