更新Android Studio来0.4.0版本。没有什么作品!它修正? [英] Updating Android Studio to version 0.4.0. nothing works! Which fixes?
问题描述
我已经取得了一些浪费code。经过一些错误我签的最新承诺。我期望与任何没有任何顺利重启。但建设项目现在我收到消息:
I've made some waste code. After some mistakes I checkout latest commit. I expected to restart with any without any hitch. But building project now I receive the message:
Waiting for device.
Target device: samsung-gt_i8190n-47900693715f5036
Uploading file
local path: /Path/to/file.apk
remote path: /path/to/file/com.example
Local path doesn't exist.
(* I've removed complete local and remote path in this post ...)
因此,当我尝试用文件的gradle同步项目,从编辑器中的新邮件到达:
Thus, when I try to sync project with gradle files, a new message from editor arrives:
Failed to refresh Gradle project 'NutriMondoProject'
Project is using an old version of the Android Gradle plug-in.
The minimum supported version is 0.7.0.
Please update the version of the dependency 'com.android.tools.build:gradle'
in your build.gradle files.
Search in build.gradle files
我觉得自己像一个离开水的鱼。
I feel like a fish out of water.
推荐答案
您已经更新至Android 0.4.0工作室
You have updated to Android Studio 0.4.0
它需要插件的gradle 0.7 +和gradle这个-包装1.9。
it requires gradle plugin 0.7.+ and gradle-wrapper 1.9.
更改您的build.gradle
Change your build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
然后更改您gradle-wrapper.properties:
Then change your gradle-wrapper.properties:
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
然后用同步的gradle文件您的项目。
推出gradlew干净清洁您的构建。
Then sync your project with gradle files. Launch gradlew clean to clean your build.
这篇关于更新Android Studio来0.4.0版本。没有什么作品!它修正?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!