appcompat-v7:28.0.0-rc01 Build Issue

早过忘川 提交于 2019-12-21 17:10:27

问题


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.

inside my Gradle I have

implementation 'com.android.support:appcompat-v7:28.0.0-rc01'

and my log is:

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'.


回答1:


Add below repository in your build.gradle inside buildscript -> allprojects

repositories {
    maven { url 'http://repo1.maven.org/maven2' }
    jcenter { url "http://jcenter.bintray.com/" }
}



回答2:


Go to File ==>Settings==>Build,Execution,Deployment ==>Gradle ==>Remove mark of Offline work

I hope it helps you



来源:https://stackoverflow.com/questions/51812167/appcompat-v728-0-0-rc01-build-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!