Issues caused by Gradle version after Android import Eclipse project
1.error:the project is using a unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.2.3.
根据提示,在build.gradle 把 dependencies { classpath ‘com.android.tools.build:gradle:0.12.+‘ } 修改为 dependencies { classpath ‘com.android.tools.build:gradle:1.2.3‘ }
2. The following error will appear after the above modification: error:unable to load class ' org.codehaus.groovy.runtime.typehandling.ShortTypeHandling '. Possible causes for this unexpected error include:you is using JDK version ' Java version ' 1.7.0_71 '. Some versions of JDK 1.7 (e.g. 1.7.0_10) may cause class loading errors in Gradle.please update to a newer version (e.g. 1 .7.0_67).
Clearly use is jdk1.7.0_71[than 1.7.0_67 new] but hint wrong, the problem starts not JDK this but gradle-wrapper.properties distributionurl=http:// Services.gradle.org/distributions/gradle-1.12-all.zip used a jdk1.7.0.10.
把 distributionUrl=http://services.gradle.org/distributions/gradle-1.12-all.zip 修改为 distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
OK, after two steps above, import the Eclipse project's normal use from studio.
Reprint please specify from http://blog.csdn.net/u011570979/article/details/45824073
Issues that are caused by the Gradle version after Android import Eclipse Project. MD