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 倉庫裡面去下載。
相關文章
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- android studio 中 Cannot resolve symbol RAndroidSymbol
- [轉]Android Studio匯入工程報錯 Error:Cause: peer not authenticated 解決方案AndroidError
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- lua 中連結 Redis 使用域名報錯 failed to connect: no resolver defined to resolveRedisAI
- Android Studio 報錯解決方案 一Android
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- 第一次開啟Android Studio建立專案執行報錯Failed to open zip fileAndroidAI
- 初次使用Android Studio 3.0匯入已有工程時,出現Failed to load Appcompat Actionbar with unknown errorAndroidAIAPPError
- Android Studio 出現“Cannot resolve symbol” 解決辦法AndroidSymbol
- 【安裝Android Studio報錯之解決方案】Android
- Android com.android.support衝突解決Android
- android studio Error:Unable to start the daemon process【轉】AndroidError
- Android Studio執行報錯INSTALL_FAILED_INVALID_APK: Split lib_slice _2_apk was defined multiple times....AndroidAIAPK
- 解決 Android studio Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refusedAndroid127.0.0.1AI
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- Android Studio 顯示Cannot resolve symbol 'XXX'的解決方式AndroidSymbol
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- 【ERROR】OPatch failed with error code 73ErrorAI
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- zabbix報錯fping failed:no outputAI
- OGG Director報錯 Connection FAILEDAI
- Mysql啟動報錯:Job for mysqld.service failed because the control process exited with error code.MySqlAIError
- 解決 React-Native mac10.14.4 執行報錯 error Failed to build iOS projectReactMacErrorAIUIiOSProject
- MySQL建立使用者報錯 ERROR 1396 (HY000): Operation CREATE USER failed for 'afei'@'%'MySqlErrorAI
- Android Studio專案匯入之後出錯:Error:(1, 0) Plugin with id 'com.android.application' not found.AndroidErrorPluginAPP
- mysql 8 報錯 ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositoryMySqlErrorAIStruct
- PHP composer 報錯 certificate verify failedPHPAI
- IDEA 報錯Failed to load JVM DLLIdeaAIJVM
- SQLServer映象報錯Connection handshake failedSQLServerAI
- AndroidStudio升級報錯Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve cAndroidAPPCompile
- Android Studio Run專案出現Failure [INSTALL_FAILED_TEST_ONLY]AndroidAI
- android studio安裝完後,開啟提示failed to load jvm dllAndroidAIJVM
- OPatch failed with error code 73AIError
- 關於Android Studio的This item may not have a label readable by screen readers報錯Android
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError