With 0.4.3 Android Studio, error: “Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly”

前端 未结 7 1726
猫巷女王i
猫巷女王i 2020-12-14 07:42

I have noticed that several people are having issues after upgrading to Android Studio 0.4.3 (problem with 0.4.2 also I believe). My error and debug steps so far are as foll

7条回答
  •  伪装坚强ぢ
    2020-12-14 08:05

    I had the same problem and using local gradle distribution didn't work for me either. I ended up finding the solution here Gradle DSL method not found: 'runProguard'

    Anything above gradle version 0.14.0 has to use minifyEnabled instead of runProguard in your projects build.gradle file. Here is how it should look :

    buildTypes {
    
        release {
    
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    

    Hope this helps. Check out the link if you are still confused

提交回复
热议问题