Turn-Android Studio low version Gradle upgrade to high version when Frequently asked questions

Source: Internet
Author: User

From: http://blog.csdn.net/feiniao8651/article/details/44652753

Today I got a compiled Android project with a low version of Gradle, and Gradle didn't do a good job of backwards compatibility, so there were a lot of problems with the high-version gradle computer.

1. Error:the project is using a unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.0.0.

<a href= "fixgradleelements" >fix plugin version and Re-import project</a>

Workaround: Click on the Fix plugin version and re-import project directly below.

2.Error: (0) Gradle DSL method not found: ' Runproguard () '

Workaround: Change Runproguard to minifyenabled in app Build.gradle

3. Error:no such property:projectdependencies for class: com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated

Workaround: Change the version number in Project Build.gradle to ' com.neenbedankt.gradle.plugins:android-apt:1.3+ ' 1.3+ to 1.4
4.Error: (0) Could not the Find property ' Processresources ' on Com.and[email protected]284d979f.

Reference: Https://bitbucket.org/hvisser/android-apt/issue/26/gradle-plugin-version-0143-remove

Androidmanifestfile Variant.processResources.manifestFile changed to Androidmanifestfile Variant.outputs[0]. Processresources.manifestfile

5. Aapt.exe has stopped working at compile time

Reference: http://stackoverflow.com/questions/21645961/android-studio-processdebugresources-failed

Workaround: The problem occurs when Compilesdfversion is 21 o'clock, as long as the buildtoolsversion is changed to 21.0.2 (or later).

Note:

I have encountered a problem 1-4 question. To the fourth Question Time, found the original text, solved well, think this article is helpful, turned over ...

Turn-Android Studio low version Gradle upgrade to high version when Frequently asked questions

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.