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.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
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.
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