appcompat-v7:28.0.0-rc01 构建问题 [英] appcompat-v7:28.0.0-rc01 Build Issue
问题描述
我正在尝试创建我的新 Kotlin 项目,我已将 Android Studio 更新到 3.1.4,将 Gradle 更新到 4.9,将 SDK 更新到 28(也安装了存储库).所以我一直在我的 appcompat 上收到这个错误.我什至将其更改为 alpha1,但仍然没有任何反应.
I am trying to create my new Kotlin project, I have updated my Android Studio to 3.1.4 and my Gradle to 4.9 and my SDK to 28 (Repository is installed too). so I get this error on my appcompat all the time. I even changed it to alpha1 but still nothing happens.
在我的 Gradle 里面
inside my Gradle I have
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
我的日志是:
org.gradle.execution.MultipleBuildFailures:构建完成,失败 1 次.在引起:org.gradle.api.resources.ResourceException:无法获取资源'https://jcenter.bintray.com/com/android/support/appcompat-v7/28.0.0-rc01/appcompat-v7-28.0.0-rc01.pom'.
org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://jcenter.bintray.com/com/android/support/appcompat-v7/28.0.0-rc01/appcompat-v7-28.0.0-rc01.pom'.
推荐答案
在 buildscript -> allprojects
Add below repository in your build.gradle
inside buildscript -> allprojects
repositories {
maven { url 'http://repo1.maven.org/maven2' }
jcenter { url "http://jcenter.bintray.com/" }
}
这篇关于appcompat-v7:28.0.0-rc01 构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!