Android Studio報錯:ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.+
Android Studio報錯:ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.+
今天新匯入一個Project專案,上來就報錯找不到類庫,Google狠起來自己的兒子都編譯不過了麼?吐血,如下:
ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.+
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
ERROR: Failed to resolve: com.android.support:recyclerview-v7:28.0.0
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
ERROR: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
嘗試各種Clear、Rebuild無果後放棄了,還得去StackOverflow尋找良方,果然不負眾望,找到了答案:
Failed to resolve: com.android.support:appcompat-v7:28.0
專案級Gradle中repositories的jcenter()下一行新增如下maven程式碼即可:
allprojects {
repositories {
jcenter()
maven {// here we go!!
url 'https://maven.google.com'
}
}
}
再編譯,完美執行。
原來 Android Support Library dependencies 都是從 Android SDK Manager 裡面下載的,現在新版本必須從 Google 的 Maven 倉庫裡面去下載。
相關文章
- Failed to resolve:com.android.support:appcompat-v7:報錯處理AIAndroidAPP
- 安裝android studio報錯Failed to install Intel HAXM.AndroidAIIntel
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- [轉]Android Studio匯入工程報錯 Error:Cause: peer not authenticated 解決方案AndroidError
- Error:Conflict with dependency 'com.android.support:support-annotations' in projErrorAndroid
- lua 中連結 Redis 使用域名報錯 failed to connect: no resolver defined to resolveRedisAI
- android studio 中 Cannot resolve symbol RAndroidSymbol
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- [Android] Eclipse錯誤:Conversion to Dalvik format failed with error 1AndroidEclipseORMAIError
- Android Studio 報錯解決方案 一Android
- Android 3.0 DELETE_FAILED_INTERNAL_ERRORAndroiddeleteAIError
- 第一次開啟Android Studio建立專案執行報錯Failed to open zip fileAndroidAI
- 開啟Android Studio報錯"required plugin “Android Support” is disabled"AndroidUIPlugin
- 【安裝Android Studio報錯之解決方案】Android
- asm報錯一例-support 報錯rename failedASMAI
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- Android com.android.support衝突解決Android
- docker 報錯 Error response from daemon: driver failed programming external connectivity on endpoint my...DockerErrorAI
- MySQL建立使用者報錯 ERROR 1396 (HY000): Operation CREATE USER failed for 'afei'@'%'MySqlErrorAI
- vipca報錯 Error 0PCAError
- Android Studio 出現“Cannot resolve symbol” 解決辦法AndroidSymbol
- ftp 報錯 550 Failed to open fileFTPAI
- zabbix報錯fping failed:no outputAI
- 【ERROR】OPatch failed with error code 73ErrorAI
- 記一次OPatch failed with error code 73錯誤AIError
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- android studio Error:Unable to start the daemon process【轉】AndroidError
- android studio 安裝報錯 unable to run mksdcard sdk toolAndroid
- [ERROR] Failed to open logErrorAI
- Could not resolve host: 'localhost 報錯解決辦法localhost
- MYSQL SOURCE報錯 ERROR: ASCIIMySqlErrorASCII
- OGG Director報錯 Connection FAILEDAI
- PHP composer 報錯 certificate verify failedPHPAI
- 使用 Lumen 中 predis 報錯 `AUTH` failedRedisAI
- SCP報錯:Host key verification failed.AI