当我尝试在手机上运行应用程序时,在AndroidStudio Gradle中,尝试通过将以下错误解决multidex-1.0.3.pom
进入我的项目:
{
"errors": [
{
"status": 404,
"message": "Could not find resource"
}
]
}
以及无法建立项目的原因,
我的build.gradle:
buildscript {
ext.kotlin_version = '1.1.3-2'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
答案 0 :(得分:0)
尝试在allProjects存储库中的jcenter上方向上移动Google Maven,如下所示:
allprojects {
repositories {
maven {
url 'https://maven.google.com'
}
jcenter()
}
}