230.android after importing Eclipse project, the following problem occurs
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.
Classpath ' com.android.tools.build:gradle:1.2.3 '
In Build.gradle according to the hint
dependencies {
Classpath ' com.android.tools.build:gradle:0.12.+ '
}
Revision changed to
dependencies {
Classpath ' com.android.tools.build:gradle:1.2.3 '
}
2. The following error occurs when you modify the above:
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).
Obviously 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 estimates are jdk1.7.0.10.
Put Distributionurl=http://services.gradle.org/distributions/gradle-1.12-all.zip
Modify to Distributionurl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
After two steps above, import the Eclipse project's normal use from studio.
After you import the Eclipse project into Android, the following issues occur