ionic-team / ionic-team/capacitor-remix-templates
Build for android failed
- Dominant language
- Swift
- Stars
- 127
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
I just cloned `capacitor-remix-template-vercel` and tried to get an apk after running
`npx cap add android`
then
`cd android`
and
`./gradlew assembleRelease`
I got this error:
```
Welcome to Gradle 7.0!
Here are the highlights of this release:
- File system watching enabled by default
- Support for running with and building Java 16 projects
- Native support for Apple Silicon processors
- Dependency catalog feature preview
For more details see https://docs.gradle.org/7.0/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file 'D:\***\android\settings.gradle' (C:\Users\***\.gradle\caches\7.0\scripts\e9mpndfhapalb0yx4e9cyujbp).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61
* 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 26s
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported commands: `npx cap add android`, then `cd android` and `./gradlew assembleRelease`. Inspect `android/settings.gradle` and the Gradle 7.0 build context around the “Unsupported class file major version 61” error. Done means the Android project can complete `assembleRelease` successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100