Issues that are caused by the Gradle version after Android import Eclipse Project. MD

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.