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