Android Studio (Error message)

Q:Error:Unable to find method 'org.gradle.api.artifacts.Configuration.setExtendsFrom
A:

1、在你的app-project \ your-app-name \ gradle \ wrapper \ gradle-wrapper.properties下打开文件

2、用以下替换旧的URL路径:distributionUrl = https://services.gradle.org/distributions/gradle-2.10-all.zip

3、将文件夹名称从“... \ 1.12”重命名为您的app-project \ your-app-name.gradle \ 2.10
4、将您的app-project \ your-app-name \ build.gradle的类路径更改为classpath'com.android.tools.build:gradle:2.1.2'
5、通过minifyEnabled替换your-app-project \ your-app-name \ app \ build.gradle的runProguard
点击重试错误提醒或重新打开Android Studio和项目。

---------------------------------------------------------------------------------------------------------------------------------------------------------------

Q:Error:(1, 0) Minimum supported Gradle version is 3.3. Current version is 2.0
A:Settings / Build,Execution,Deployment -Gradle / Project-level settings,修改Use local gradle distribution路径

posted @ 2017-09-13 16:17  8995  阅读(400)  评论(0编辑  收藏  举报