Android Gradle version problem solved by Gradle release of multichannel version

Source: Internet
Author: User
Tags android sdk manager

Today in the release of multi-channel version through Gradle, encountered the Gradle version is too low to support the Manifestplaceholders field of the problem, want to do all kinds of ways to upgrade Gradle, Gradle plug-in, finally succeeded, here to share the method to everyone.

I am using IntelliJ idea 13,gradle version is 1.8,gradle plugin version is 0.6.+, need to upgrade Gradle to 2.1, plug-in version upgrade to 0.14 +. The errors encountered are:

Deprecated dynamic property: "Manifestplaceholders" on "Productflavordsl_decorated{name=main, Minsdkversion=14, targetsdkversion=19, Renderscripttargetapi=-1, Versioncode=-1, Versionname=null, Packagename=null, testPackageName= NULL, Testinstrumentationrunner=null, Signingconfig=null} ", Value:" {channel_name=default_ ... ".

First change the/gradle/wrapper/gradle-wrapper.properties file in the project directory to Distributionurl (note that there will be a/gradle/wrapper/in the sub-project directory) Gradle-wrapper.properties file, can be modified together):

Distributionurl=http\://services.gradle.org/distributions/gradle-2.1-bin.zip

Next, enter the project directory at the terminal and run the command update Gradle:

./gradlew Wrapper

After the update, modify the version of the Gradle plug-in in the Build.gradle file to read:

dependencies {        classpath ' com.android.tools.build:gradle:0.14+ '    }

Then run the command update plugin in the Terminal Engineering directory:

./gradlew Assembledebug

There may be an error in the process:

The SDK Build Tools Revision (17.0.0) is too low for project ': Xdp_android '. Minimum Required is 19.1.0

You will need to download the SDK Build Tools 19.1.0 and install it in Android SDK manager at this time. Once the installation is complete, execute assembledebug again to succeed.


If you feel that you can help, but also hope to help the top, thank you:)
Personal blog:http://blog.csdn.net/zhaoxy2850
This address:http://blog.csdn.net/zhaoxy_thu/article/details/43990627
Reprint please indicate the source, thank you!

Android Gradle version problem solved by Gradle release of multichannel version

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.