Error:Could not find com.github.dcendents:android-maven-plugin:1.3解决方式

  • Post author:
  • Post category:其他


今天把一个库上传到jcenter时,按照网上的教程一步一步操作,中间遇到了一些错误,都在网上找到了答案,但是在最后一步时,遇到了以下这个错误:

Error:Could not find com.github.dcendents:android-maven-plugin:1.3.
Searched in the following locations:
file:/F:/Android_Studio/gradle/m2repository/com/github/dcendents/android-maven-plugin/1.3/android-maven-plugin-1.3.pom
file:/F:/Android_Studio/gradle/m2repository/com/github/dcendents/android-maven-plugin/1.3/android-maven-plugin-1.3.jar
https://jcenter.bintray.com/com/github/dcendents/android-maven-plugin/1.3/android-maven-plugin-1.3.pom
https://jcenter.bintray.com/com/github/dcendents/android-maven-plugin/1.3/android-maven-plugin-1.3.jar
Required by:
:CheckUpdateLibrary:unspecified

网上竟然没搜到答案,并且遇到这个问题的人也很少,翻墙去问了了google也没找到很好的答案,但是在看其他问题的回答时,发现了一些端倪:

首先,按照网上的一般教程(反正国内的这种教程,都是你抄我的,我抄你的,内容都不带变化的),有一步是需要在项目级别的build.gradle文件中添加如下内容

 classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:



版权声明:本文为qiang_xi原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。