将Android Studio更新至0.4.0版.没有用!哪个修复?

sen*_*rio 0 android gradle android-studio build.gradle android-gradle-plugin

我做了一些浪费代码.在出现一些错误后,我会检查最新的提交.我希望重启任何没有任何障碍.但现在建立项目我收到的消息:

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 ...)
Run Code Online (Sandbox Code Playgroud)

因此,当我尝试将项目与gradle文件同步时,来自编辑器的新消息到达:

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
Run Code Online (Sandbox Code Playgroud)

我觉得自己像一条脱水的鱼.

Gab*_*tti 12

您已更新至Android Studio 0.4.0

它需要gradle插件0.7.+和gradle-wrapper 1.9.

更改build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'
    }
}
Run Code Online (Sandbox Code Playgroud)

然后更改gradle-wrapper.properties:

distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
Run Code Online (Sandbox Code Playgroud)

然后使用gradle文件同步项目.启动gradlew清洁以清洁您的构建.