How to fix Unsupported Java error in Android Studio. Configure Gradle Plugin and Gradle Versions.
HTML-код
- Опубликовано: 11 сен 2024
- This video explains how to solve "Unsupported Java" build error by configuring Android Gradle Plugin and Gradle Versions in Android Studio.
#UnsupportedJava
#gradle
#androidstudio
It didn't work exactly but I had to start from the minimum Gradle version up to the maximum. My android studio version is Electric eel, the plug-in version: is 7.4, and the Gradle version: is 7.6. Thank you so much for the information!
I have Electric Eel like you and I try this version it's work. Thank you @lovikim1637
the best explanation. thanks
thanks ..........
Thanks for the guidance
Thank you very much
thanks
It worked but every time i create a new project I have to manually change gradle again and again. how should I keep it permanent
I upgrade my gradle plugin version as you say but I am facing unsupported java error again and again.
let me know which version of Gradle JDK are you using? [To find out the JDK version go to Android Studio -> Preferences -> Build,execution,Deployment -> BuildTools -->Gradle]. If possible change it to embedded JDK and Try to rebuild the project.
All my versions are fine. But still my problem persists
let me know which android studio version and gradle plugin versions are you using
@@irekhatechsolutions It was working fine till a few days back and I did some upgrades in the process of doing something. Later any new project I create I get
"Unsupported Java.
Your build is currently configured to use Java 19.0.1 and Gradle 7.5.
Possible solution:
- Open Gradle wrapper settings, change `distributionUrl` property to use compatible Gradle version and reload the project"
I have Android Studio Eel | 2022.1.1
Oddly, the problem disappears when I upgrade gradle to 7.6.
When I checked the Plugin release notes, it seemed fine for my studio version.
Finally, could you suggest how to change the default gradle to 7.6?
Thanks
@@NatarajanGanesan Please check the link developer.android.com/studio/releases/gradle-plugin for compatible plugin and gradle versions for Electric Eel Android Studio. And to change the Gradle version go to Project Structure -> Project -> Gradle version.
@@NatarajanGanesan hey bro I'll very thankful to you if you would like to tell me that your problem solved as I Am having this same issue plz help me brother I'm very disturbed due to this bug from weeks
@@ghot-op9066 I did partly solve it by upgrading Gradle to 7.6. You do this by clicking on the top right settings button and select Project Structure.
Audio of this video is bad. What a shame