Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shorebird init error #2924

Open
duonghungit24 opened this issue Feb 26, 2025 · 3 comments
Open

shorebird init error #2924

duonghungit24 opened this issue Feb 26, 2025 · 3 comments
Labels
waiting for response Waiting for customer response

Comments

@duonghungit24
Copy link

shorebird init
✓ Fetching organizations (0.4s)
✗ Detecting product flavors (5.4s)
Unable to extract product flavors.
Unsupported class file major version.

This error is typically caused by a mismatch between the Java and Gradle's versions.

Check our troubleshooting documentation for help.

If you aren't sure why this command failed, re-run with the --verbose flag to see more information.

You can also file an issue if you think this is a bug. Please include the following log file in your report:

@eseidel
Copy link
Contributor

eseidel commented Feb 26, 2025

Would love to help. I'd recommend running:

shorebird doctor -v and flutter doctor -v and comparing the Java and Gradle locations/versions those commands find. Thanks!

@eseidel eseidel added the waiting for response Waiting for customer response label Feb 26, 2025
@duonghungit24
Copy link
Author

yes, I see that the two versions are different, but I don't know where shorebird is getting the version. Even though my java_home is 17, shorebird is getting 21. I use android studio ladybugs

@eseidel
Copy link
Contributor

eseidel commented Feb 28, 2025

Yeah, this is #2657.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for response Waiting for customer response
Projects
None yet
Development

No branches or pull requests

2 participants