问题:
Error:Could not find com.github.dcendents:android-maven-plugin:1.5.
Searched in the following locations:file:/D:/android-studio/gradle/m2repository/com/github/dcendents/android-maven-plugin/1.5/android-maven-plugin-1.5.pomfile:/D:/android-studio/gradle/m2repository/com/github/dcendents/android-maven-plugin/1.5/android-maven-plugin-1.5.jarhttps://repo1.maven.org/maven2/com/github/dcendents/android-maven-plugin/1.5/android-maven-plugin-1.5.pomhttps://repo1.maven.org/maven2/com/github/dcendents/android-maven-plugin/1.5/android-maven-plugin-1.5.jarRequired by:project :
解决方案:
https://github.com/dcendents/android-maven-gradle-plugin
查看版本:
https://bintray.com/dcendents/gradle-plugins/com.github.dcendents%3Aandroid-maven-gradle-plugin/
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' }}apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven'
Or use the new syntax since Gradle 2.1
plugins { id "com.github.dcendents.android-maven" version "1.5" }