亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

所有依賴項都無法解決?

所有依賴項都無法解決?

達令說 2021-11-17 15:20:38
我的項目已正確構建并運行,但自從我更新了 Android Studio 后,它會出現這些錯誤……并且未選中離線工作。錯誤Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:multidex:1.0.3. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:design:26.1.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:cardview-v7:26.1.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:recyclerview-v7:26.1.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:appcompat-v7:26.1.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support.constraint:constraint-layout:2.0.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:support-compat:26.1.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.github.ybq:Android-SpinKit:1.1.0. Open File Show DetailsUnable to resolve dependency for ':app@debug/compileClasspath': Could not resolve > com.android.support:appcompat-v7:26.1.0. Open File Show DetailsFailed to resolve: com.android.support.test:runner:1.0.2 Show in File Show in Project Structure dialogFailed to resolve: com.android.support.test.espresso:espresso-core:3.0.2 Show in File Show in Project Structure dialogFailed to resolve: com.android.support:multidex-instrumentation:1.0.2 Open File Show in Project Structure dialog
查看完整描述

2 回答

?
慕桂英4014372

TA貢獻1871條經驗 獲得超13個贊

我找到了......就像Yuenbe所說的那樣添加jcenter()和google()......然后啟動一個vpn然后構建項目


查看完整回答
反對 回復 2021-11-17
?
飲歌長嘯

TA貢獻1951條經驗 獲得超3個贊

在您的項目.gradle(不是應用模塊一)中,您可能缺少 Google 存儲庫。這就是無法找到依賴項的原因。


buildscript {


    repositories {

        google() // <-- This is the line you must add

        jcenter()

    }

}


查看完整回答
反對 回復 2021-11-17
  • 2 回答
  • 0 關注
  • 273 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號