Failed to resolve: android.arch.lifecycle:runtime:1.0.0,Failed to resolve: support-v4
生活随笔
收集整理的這篇文章主要介紹了
Failed to resolve: android.arch.lifecycle:runtime:1.0.0,Failed to resolve: support-v4
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Android studio 導入項目報錯:
Failed to resolve: com.android.support:support-core-ui:26.1.0
Add Google Maven repository and sync project
Open File
Show in Project Structure dialog
Failed to resolve: android.arch.lifecycle:runtime:1.0.0
Open File
Show in Project Structure dialog
Failed to resolve: support-v4
Open File
?
解決方法:
1、點擊第二行: ? Add Google Maven repository and sync project
2、打開項目build.gradle,找到repositories
?
將
repositories {jcenter() }改為
repositories {mavenCentral()//如果 jcenter 很慢,嘗試添加 mavenCentral 并調整到首行jcenter() // maven { url 'https://maven.google.com' }maven { url "https://jitpack.io" }maven { url "https://raw.githubusercontent.com/HyphenateInc/Hyphenate-SDK-Android/master/repository" }google()}同步即可
?
總結
以上是生活随笔為你收集整理的Failed to resolve: android.arch.lifecycle:runtime:1.0.0,Failed to resolve: support-v4的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 简单正则替换
- 下一篇: IoT平台功能架构图