當前位置:
首頁 >
解决 Plugin with id 'com.github.dcendents.android-maven' not found.
發布時間:2025/3/15
26
豆豆
生活随笔
收集整理的這篇文章主要介紹了
解决 Plugin with id 'com.github.dcendents.android-maven' not found.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在Android studio中引用第三方庫的時候,報這個錯。
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
搜了一下。
"這是原因為該項目的原作者會把項目發布到maven中央倉庫中,所以在gradle中添加了相關的maven發布任務。
咱們又不能連到maven的倉庫,所以我們把你要導入的第三方build.gradle中"[1]無用的部分都刪掉。
?
按照作者的方法
刪掉除了
android{} dependencies{}之外的部分后還是不行,與pulltorefresh庫中的build.gradle對比了一下,
在最頂部保留
apply plugin: 'com.android.library'rebuild一下,項目好用了!
?
[1] http://blog.csdn.net/cxzczxcxzc/article/details/48976843
轉載于:https://www.cnblogs.com/touchmore/p/5588140.html
總結
以上是生活随笔為你收集整理的解决 Plugin with id 'com.github.dcendents.android-maven' not found.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 初步认识JUnit
- 下一篇: base64_encode() 和 ba