chatwoot-mobile-app
chatwoot-mobile-app copied to clipboard
Mobile App: Build Failed: Unsupported Class File Major Version 66 Error During 'yarn android'
trafficstars
Describe the bug
When running yarn android, the build fails with the error "Unsupported class file major version 66" during the Gradle build process.
To Reproduce
What I did:
- Followed the setup guide (https://www.chatwoot.com/docs/contributing-guide/mobile-app/setup-guide/) to clone the repository and install dependencies.
- Fixed everything that
react-native doctorasked me yarn android
Expected behavior
The application should build and run on an Android device or emulator without errors.
Screenshots
n/a
Observed behavior
The build process fails with the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file 'settings.gradle'.
> 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 5s
error Failed to install the app.
error Command failed with exit code 1.
Environment
- Self hosted
- Device Name: n/a
- OS Version: Debian 12
- Chatwoot App Version: Latest
- Chatwoot Server Version: Latest
Additional context
n/a
Possible fixes
n/a