8

Build/Sync window showed the 'CONFIGURE SUCCESSFUL' and Build Successful. But the android studio still show the error: "Gradle project sync failed. Basic functionality will not work properly"

Leon Lei
  • 383
  • 2
  • 10

2 Answers2

6

Update at 2019/01/15

Update android studio to 3.3 fix this problem!


I face this too. Not a solve, but you can try.

  1. In your project gradle file

change gradle version from 3.2.0 to 3.1.4

com.android.tools.build:gradle:3.1.4

  1. In gradle-wrapper.properties file

change gradle version from 4.6 to 4.4

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

aotian16
  • 591
  • 1
  • 6
  • 19
  • Is it works now without this manipulations? I still have this bug with 3.2.1 and 4.6. – kolombo Jan 01 '19 at 18:20
  • @kolombo Sorry, I have no idea about that. I am still using this method. Hope google fix this in next version. – aotian16 Jan 02 '19 at 11:22
1

My problem was there was no google() in my repo list under all projects:

allprojects {
    repositories {
        jcenter()
        google()
    }
}
Uriel Frankel
  • 12,370
  • 7
  • 41
  • 62