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

Комментарии • 17

  • @lovikim1637
    @lovikim1637 Год назад

    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!

    • @atakulumut
      @atakulumut Год назад

      I have Electric Eel like you and I try this version it's work. Thank you @lovikim1637

  • @runakuntur
    @runakuntur Год назад

    the best explanation. thanks

  • @rajput3001
    @rajput3001 Год назад +1

    thanks ..........

  • @daveblanchard5064
    @daveblanchard5064 Год назад

    Thanks for the guidance

  • @user-mk6hr6rr5t
    @user-mk6hr6rr5t Год назад

    Thank you very much

  • @shababarshad8688
    @shababarshad8688 Год назад

    thanks

  • @_ace01
    @_ace01 Год назад

    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

  • @vinaydhande9926
    @vinaydhande9926 Год назад

    I upgrade my gradle plugin version as you say but I am facing unsupported java error again and again.

    • @irekhatechsolutions
      @irekhatechsolutions  Год назад

      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.

  • @NatarajanGanesan
    @NatarajanGanesan Год назад +1

    All my versions are fine. But still my problem persists

    • @irekhatechsolutions
      @irekhatechsolutions  Год назад

      let me know which android studio version and gradle plugin versions are you using

    • @NatarajanGanesan
      @NatarajanGanesan Год назад

      ​@@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

    • @irekhatechsolutions
      @irekhatechsolutions  Год назад +1

      @@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.

    • @ghot-op9066
      @ghot-op9066 Год назад

      @@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

    • @NatarajanGanesan
      @NatarajanGanesan Год назад

      @@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.

  • @mikebledig7208
    @mikebledig7208 6 месяцев назад

    Audio of this video is bad. What a shame