About Android Studio Gradle error

Source: Internet
Author: User

Today, Android Studio ran the project, build a bit, always can not afford to, the Gradle and Android studio have updated a bit, or not,

Keep on reporting this error

Unsupportedmethodexception Failed to set up Android modules in Project ' project ': Unsupported Method:sourceprovid         Er.getjnidirectories ().         The version of Gradle you connect to does is not a support for that method.         To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.

This time to search, just know is build.gradle inside the problem:

Buildscript {repositories {jcenter ()} dependencies {classpath ' com.android.tools.build:gradle:0 .14.0 '//Note:do not place your application dependencies here; They belong//in the individual module Build.gradle files}}

This one is a bug.

Classpath ' com.android.tools.build:gradle:0.14.0 '

Change into

Classpath ' com.android.tools.build:gradle:0.13.+ '

It's OK.

Reference fly to StackOverflow

About Android Studio Gradle error

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.