Use com. android. tools. build:gradle:4.2.
Read moreWhere do I update my gradle version?
Update Gradle For the best performance, you should use the latest possible version of both Gradle and the plugin. You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio , or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.
Read moreHow do I update my gradle package?
We recommend the following steps for all users:
Read moreHow do I change the gradle version in flutter?
open your project and then go to : File->Settings->Build, Execution, Deployment->Build Tools-> Gradle. Add the path of your Gradle in The Android Studio as shown bellow.10 Ağu 2021
Read more