Recently i updated my android studio to 0 .30 I was trying to import project in android studion.
最近我把我的android studio更新到0。30,我正在尝试在android studion中导入项目。
Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.6.1.
Project使用的是旧版本的Android Gradle插件。最小支持版本是0.6.1。
Please update the version of the dependency 'com.android.tools.build:gradle' in your build.gradle files.
请更新依赖项的com.android.tools版本。构建:构建gradle”。gradle文件。
Consult IDE log for more details (Help | Show Log)
查阅IDE日志了解更多细节(帮助|显示日志)
2nd error
第二次错误
You are using an old, unsupported version of Gradle. Please use version 1.8 or greater. Please point to a supported Gradle version in the project's Gradle settings or in
the project's Gradle wrapper (if applicable.) Consult IDE log for more details (Help | Show Log您正在使用一个旧的、不支持的Gradle版本。请使用版本1.8或更高版本。请在项目的Gradle设置中或项目的Gradle包装器(如果适用)中指出支持的Gradle版本。请参考IDE日志了解更多细节(帮助|显示日志)
3rd error
第三个错误
Could not execute build using Gradle distribution ' http://services.gradle.org/distributions/gradle-1.6-bin.zip'. Build file 'C:\Users\Asthme\crushersblue1\babies\build.gradle' line: 8
无法使用Gradle发行版本“http://services.gradle.org/distributions/gradle 1.6-bin.zip”执行构建。构建文件的C:\ \ Asthme \婴儿crushersblue1 \ \用户构建。gradle线:8
Could not find method classpath() for arguments
[com.android.tools.build:gradle:0.6.+] on project ':crushersblue1:babies'.无法为参数找到方法类路径()[com.android.tools.build:gradle:0.6]。+)项目“crushersblue1:婴儿”。
Consult IDE log for more details (Help | Show Log)
查阅IDE日志了解更多细节(帮助|显示日志)
5 个解决方案
#1
6
Step 1: Change line in build.gradle from:
步骤1:在构建中更改行。gradle:
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
Step 2:
步骤2:
In the YourProject.iml
file, delete the entire component name="FacetManager"
tag.
在志愿者项目。iml文件,删除整个组件名称="FacetManager"标签。
Step 3
步骤3
(Maybe not necessary): In the Android SDK manager, install (if not already installed) Android Support Repository under Extras.
(也许没有必要):在Android SDK管理器中,在Extras之下安装(如果还没有安装的话)Android Support Repository。
Refer this
请参考这个
#2
5
I was able to fix this by using the file path to my gradle directory:
我可以通过使用到我的等级目录的文件路径来修复这个问题:
C:\Users\xxxx.gradle\wrapper\dists\gradle-1.12-all\2apkk7d25miauqf1pdjp1bm0uo\gradle-1.12
C:\Users\ xxxx.gradle \包装\ dist \ gradle - 1.12 \ 2 apkk7d25miauqf1pdjp1bm0uo \ gradle - 1.12
the import continued fine.
进口继续好了。
#3
2
This is duplicate of Unable to import Eclipse project to Android Studio (when using default gradle wrapper)
这是无法将Eclipse项目导入到Android Studio(使用默认的gradle包装时)的副本。
Answer:
答:
I had to edit the gradle wrapper settings in
gradle/wrapper/gradle-wrapper.properties
and changegradle
version to 1.8.我必须在level /wrapper/gradle-wrapper中编辑gradle wrapper设置。属性并将等级版本更改为1.8。
./gradle/wrapper/gradle-wrapper.properties :
。/它/包装/ gradle-wrapper。属性:
#Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
I had to change gradle-1.6-bin.zip to gradle-1.8-bin.zip. I guess the old ADT plugin from eclipse which generates this file still uses the old URL.
我必须换1.6年级。gradle - 1.8 bin.zip zip。我猜eclipse中生成这个文件的旧ADT插件仍然使用旧的URL。
#4
1
If all the other solutions here do not work (they are all from 3 days ago)... I found...
如果所有其他的解决方案都不管用(它们都是三天前的)……我发现……
I had secondary project in my settings.gradle and each of those projects had their own build.gradle. The Android Studio IDE says that you need to uddate to 0.6.1 but it points to only the first-project build.gradle - I had to manually locate the secondary build.gradle file for those projects and make sure all said 0.6.+ instead of previous versions.
我在我的设置中有次要的项目。这些项目都有自己的建筑。Android Studio IDE说,您需要uddate到0.6.1,但是它只指向第一个项目构建。gradle——我必须手动定位辅助构建。这些项目的等级文件,确保都是0.6。+而不是以前的版本。
#5
0
Change gradle to 0.6.+ as ling has suggested, and also in your gradle-wrapper.properties
file, change the distributionUrl
to http\://services.gradle.org/distributions/gradle-1.8-bin.zip
.
gradle改为0.6。正如玲玲所建议的,而且也在你的小包装上。属性文件,将distributionUrl更改为http\://services.gradle.org/distributions/gradle 1.8 bin.zip。
#1
6
Step 1: Change line in build.gradle from:
步骤1:在构建中更改行。gradle:
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
Step 2:
步骤2:
In the YourProject.iml
file, delete the entire component name="FacetManager"
tag.
在志愿者项目。iml文件,删除整个组件名称="FacetManager"标签。
Step 3
步骤3
(Maybe not necessary): In the Android SDK manager, install (if not already installed) Android Support Repository under Extras.
(也许没有必要):在Android SDK管理器中,在Extras之下安装(如果还没有安装的话)Android Support Repository。
Refer this
请参考这个
#2
5
I was able to fix this by using the file path to my gradle directory:
我可以通过使用到我的等级目录的文件路径来修复这个问题:
C:\Users\xxxx.gradle\wrapper\dists\gradle-1.12-all\2apkk7d25miauqf1pdjp1bm0uo\gradle-1.12
C:\Users\ xxxx.gradle \包装\ dist \ gradle - 1.12 \ 2 apkk7d25miauqf1pdjp1bm0uo \ gradle - 1.12
the import continued fine.
进口继续好了。
#3
2
This is duplicate of Unable to import Eclipse project to Android Studio (when using default gradle wrapper)
这是无法将Eclipse项目导入到Android Studio(使用默认的gradle包装时)的副本。
Answer:
答:
I had to edit the gradle wrapper settings in
gradle/wrapper/gradle-wrapper.properties
and changegradle
version to 1.8.我必须在level /wrapper/gradle-wrapper中编辑gradle wrapper设置。属性并将等级版本更改为1.8。
./gradle/wrapper/gradle-wrapper.properties :
。/它/包装/ gradle-wrapper。属性:
#Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
I had to change gradle-1.6-bin.zip to gradle-1.8-bin.zip. I guess the old ADT plugin from eclipse which generates this file still uses the old URL.
我必须换1.6年级。gradle - 1.8 bin.zip zip。我猜eclipse中生成这个文件的旧ADT插件仍然使用旧的URL。
#4
1
If all the other solutions here do not work (they are all from 3 days ago)... I found...
如果所有其他的解决方案都不管用(它们都是三天前的)……我发现……
I had secondary project in my settings.gradle and each of those projects had their own build.gradle. The Android Studio IDE says that you need to uddate to 0.6.1 but it points to only the first-project build.gradle - I had to manually locate the secondary build.gradle file for those projects and make sure all said 0.6.+ instead of previous versions.
我在我的设置中有次要的项目。这些项目都有自己的建筑。Android Studio IDE说,您需要uddate到0.6.1,但是它只指向第一个项目构建。gradle——我必须手动定位辅助构建。这些项目的等级文件,确保都是0.6。+而不是以前的版本。
#5
0
Change gradle to 0.6.+ as ling has suggested, and also in your gradle-wrapper.properties
file, change the distributionUrl
to http\://services.gradle.org/distributions/gradle-1.8-bin.zip
.
gradle改为0.6。正如玲玲所建议的,而且也在你的小包装上。属性文件,将distributionUrl更改为http\://services.gradle.org/distributions/gradle 1.8 bin.zip。