在升级消息指出:
Failed to refresh Gradle project 'XXX' The project is using an unsupported version of the Android Gradle plug-in (0.8.3). Version 0.9.0 introduced incompatible changes in the build language. Please read the migration guide to learn how to update your project.
同类问题升级到Android Studio中的版本后,> = 0.8.0
Same kind of issue after upgrade to Android Studio to version >= 0.8.0
推荐答案要解决这个问题,叫 build.gradle 在项目的根打开的文件,并更改摇篮版本有至0.9。+
To fix it, open file called build.gradle in the project root, and change gradle version there to 0.9.+.
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.9.+' } }要重复每个项目;(
如果你再得到这样的消息的无法加载类' org.gradle.api.artifacts.result.ResolvedComponentResult 的。
If you then get a message like "Unable to load class 'org.gradle.api.artifacts.result.ResolvedComponentResult".
进入您 project_folder /摇篮/包装目录,并修改无法加载类的org.gradle.api.artifacts.result.ResolvedComponentResult 文件修改 distributionUrl 到
Go to you project_folder/gradle/wrapper directory and edit Unable to load class 'org.gradle.api.artifacts.result.ResolvedComponentResult'. file changing the distributionUrl to
distributionUrl=http\://services.gradle/distributions/gradle-1.10-all.zip
升级到0.8.1版本后(完整下载和复制SDK文件夹以上),必须有摇篮的通过IDE安装新版本(使用修复链接几个时间:S),以及对矫正的在项目文件夹中的文件的摇篮,从19.0到19.1的Android部分,如下图所示: buildscript { 库{ mavenCentral() } 依赖{ 类路径com.android.tools.build:gradle:0.12.+ } } 应用插件:机器人
After upgrade to version 0.8.1 (full download and copy SDK folder over), had to have new version of gradle installed by IDE (using the "Fix it" link a couple of time :S ), and modifing the "android" section of the gradle file in project folder from 19.0 to 19.1, as below: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.12.+' } } apply plugin: 'android'
repositories { mavenCentral() } android { compileSdkVersion 19 buildToolsVersion '19.1.0' defaultConfig { minSdkVersion 7 targetSdkVersion 19 } } dependencies { compile 'com.android.support:appcompat-v7:19.1.+' compile 'com.android.support:support-v4:19.1.0' }更多推荐
Android的工作室摇篮问题升级到0.5.0版本
发布评论