TreeView icon indicating copy to clipboard operation
TreeView copied to clipboard

open project with grandle error

Open hzhou81 opened this issue 8 years ago • 1 comments

error message is Gradle sync failed: Could not determine the class-path for interface com.android.builder.model.AndroidProject.

hzhou81 avatar May 25 '17 01:05 hzhou81

@hzhou81 the gradle plugin in use is outdated. If you apply something like the below the project should run

diff --git a/TreeView/build.gradle b/TreeView/build.gradle
index 18865e938606..60d34196107e 100644
--- a/TreeView/build.gradle
+++ b/TreeView/build.gradle
@@ -5,12 +5,12 @@ dependencies {
 }
 
 android {
-    compileSdkVersion 19
-    buildToolsVersion "19.0.3"
+    compileSdkVersion 25
+    buildToolsVersion '25.0.0'
 
     defaultConfig {
-        minSdkVersion 11
-        targetSdkVersion 19
+        minSdkVersion 14
+        targetSdkVersion 25
     }
 }
 
diff --git a/build.gradle b/build.gradle
index e599548ac2bb..574a87dc3601 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ buildscript {
         mavenCentral()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:0.10.+'
+        classpath 'com.android.tools.build:gradle:2.3.2'
     }
 }
 
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index f6e56ca7432e..67e051e42c39 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

aalemayhu avatar May 26 '17 10:05 aalemayhu