Could not find support-media-compat.aar
生活随笔
收集整理的這篇文章主要介紹了
Could not find support-media-compat.aar
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
升級android studio到3.3版本,今天checkout到歷史tag上運行android項目,死活報錯
?
報錯如下:
Could not find support-media-compat.aar
或者如下報錯:
ERROR: Failed to resolve: support-media-compat
Affected Modules: app
ERROR: Failed to resolve: support-core-utils
Affected Modules: xxx
ERROR: Failed to resolve: support-compat
Affected Modules: xxxxxx
?
最后意外發現是google()倉庫位置的問題
報錯配置:
把google()放到第一位即可,build.gread里面有兩個repositories,都把google()提到第一行即可
?
allprojects {repositories {google()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" }} } repositories {google()mavenCentral()//如果 jcenter 很慢,嘗試添加 mavenCentral 并調整到首行jcenter()maven {url "https://www.jitpack.io"} }
?
總結
以上是生活随笔為你收集整理的Could not find support-media-compat.aar的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 阅读笔记一之《软件需求与分析》
- 下一篇: nachos中文教程java_Nacho