skip to Main Content

since I changed my project java version in build.gradle from 1_8 to 11 this error appears, do you know how can I repair it, and I really need this java version, so thanks in advance for your answear.

2

Answers


  1. Your Android Gradle Plugin might need to be upgraded to 7.

    When you start Android Studio, check the notification in the bottom-right corner that says "Project Update recommended, Android Gradle Plugin can be updated." like the picture below.

    Hit that blue ‘updated’ text to start upgrading it.

    Login or Signup to reply.
  2. You probably have to download the new update if you don’t have it.

    If you can’t find the notification like @DuncanSungWKim says, you can go to Settings > Plugins > Gradle Plugin and you would find the update button.

    If after the update it still doesn’t work, try changing the Java version from 11 to 1.11 since that happened to me.

    I hope this will work for you

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search