将 android studio 3.0.1 更新到 3.1 时找不到 android-maven-gradle-plugin.jar
Could not find android-maven-gradle-plugin.jar while updating android studio 3.0.1 to 3.1
我在更新 android studio 3.0.1 到 3.1 时遇到以下问题
找不到 android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-插件: 1.5).
在以下位置搜索:
https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar
下面是我的build.gradle
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.novoda:bintray-release:0.3.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'io.fabric.tools:gradle:1.24.4'
}
}
请帮忙
Gradle Android Maven 插件
要使用 android-maven-gradle-plugin,只需在您的 android-library 项目中应用该插件。还将插件类路径依赖项添加到 buildScript。
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
或使用gradle 2.1
plugins {
id "com.github.dcendents.android-maven" version "2.0"
}
您可以在脚本中设置maven groupId和版本build.gradle:
group = 'com.example'
version = '1.0'
在settings.gradle中设置:
rootProject.name = 'artifact'
找到解决方案,
更新解决了错误
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
到
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
在gradle-wrapper.properties中使用这个:
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip
并将 buildToolsVersion 更新为 27.0.3
我在更新 android studio 3.0.1 到 3.1 时遇到以下问题
找不到 android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-插件: 1.5). 在以下位置搜索: https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar
下面是我的build.gradle
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.novoda:bintray-release:0.3.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'io.fabric.tools:gradle:1.24.4'
}
}
请帮忙
Gradle Android Maven 插件
要使用 android-maven-gradle-plugin,只需在您的 android-library 项目中应用该插件。还将插件类路径依赖项添加到 buildScript。
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
或使用gradle 2.1
plugins {
id "com.github.dcendents.android-maven" version "2.0"
}
您可以在脚本中设置maven groupId和版本build.gradle:
group = 'com.example'
version = '1.0'
在settings.gradle中设置:
rootProject.name = 'artifact'
找到解决方案, 更新解决了错误
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
到
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
在gradle-wrapper.properties中使用这个:
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip
并将 buildToolsVersion 更新为 27.0.3