Resolve Plugin with ID ' com.github.dcendents.android-maven ' not found.

Source: Internet
Author: User

When referencing a third-party library in Android studio, report this error.

Error: (2, 0) Plugin with the id ' com.github.dcendents.android-maven ' not found.

Searched for a bit.

This is because the original author of the project publishes the project to the MAVEN central repository, so a related Maven publishing task is added to the gradle.

We can't connect to Maven's warehouse, so we'll put you in the third-party build.gradle you're going to import.

According to the author's method

Erase except

android{}
dependencies{}

outside of the section is still not good, and Pulltorefresh library in the build.gradle compared a bit,

At the top of the reservation

Apply plugin: ' Com.android.library '

Rebuild, the project is very useful!

Resolve Plugin with ID ' com.github.dcendents.android-maven ' not found.

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.