Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationEventAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.


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

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 {
     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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Help us understand the problem. What are the problem?