LoginSignup
8
8

More than 5 years have passed since last update.

Android Studio 1.5 で Gradle sync failed が発生する場合の対処法

Posted at

Android Studio を 1.4 から 1.5 にアップグレードしたら、既存のプロジェクトが以下の様なエラーを出してビルドできなくなってしまった。

Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-2.4/lib/plugins/gradle-diagnostics-2.4.jar (No such file or directory)

ググったら以下のエントリが見つかった。

これで解決するプロジェクトとそうでないプロジェクトがあった。

解決しないプロジェクトは build.gradle を以下のように変更して gradle のバージョンを最新にすることで解決した。

@@ -5,7 +5,7 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:1.3.0'
+        classpath 'com.android.tools.build:gradle:1.5.0'

         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8