Answers 1 : – Change to
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
in file gradle-wrapper.properties
, and then change to
classpath 'com.android.tools.build:gradle:4.0.1'
in file build.gradle
(Project)
Answers 2 : –
I had the same problem and solved it the following way.
Step 1: Open Android Studio
Step 2: Once the gradle build is completed. click on Help on the android studio toolbar
Step 3: Select “Check for Updates” and click on it( for your Macbook, goto Android Studio option and select Check for updates).
Step 4: Android Studio will show you a pop up window. Click on Download to update your Android studio.