talawa
talawa copied to clipboard
FAILURE: Build failed with an exception.
Describe the bug When the Project is run ,it throws an error saying it requires JAVA version 11.
To Reproduce Steps to reproduce the behavior:
1.Fork the repository. 2.Run git clone (Repo URL). 3.Run the flutter pub get command in terminal. 4.Run the develop branch in VS Code.
Expected behavior Was expecting it to run on my local machine in order to contribute on this Project.
Actual behavior It threw an error saying it requires Java Version 11.However,my other projects that I have been working runs perfectly.
Screenshots
Additional details
Congratulations on making your first Issue! :confetti_ball: If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.
Thanks. You will need to upgrade your SDK version to that of the Talawa project. Java 11 should work. We do all our automated testing using Java 12, and therefore should probably upgrade the gradle settings accordingly.
hey @palisadoes , should I upgrade my flutter SDK version or ?
In Android Studio you can assign a Java SDK version to a particular project. I'm not sure about other IDEs
Okay ,I will try that solution. What about on VS code??
Hi @palisadoes it shows the same error even after upgrading the Java SDK version to 11.
@PrabeshPP I think there is some issue with your vscode configuration. Try running flutter doctor
to check if there is an error.
hi @noman2002 I did try running the flutter doctor ,but there is no error. I will re-install the VS code. Hope it would work.
hi @noman2002 I did try running the flutter doctor ,but there is no error. I will re-install the VS code. Hope it would work.
Is it working after reinstallation?
Even after re-installation , it's showing same error.
Even after re-installation , it's showing same error.
Text on slack. Someone will help you there for sure.
@PrabeshPP the problem is not with flutter setup the problem is with the non appropriate jdk version
Follow the below steps :
- Run
flutter clean
- go to
android/
and run./gradlew clean
Repeat step 2 until it executes 100% successfully.