1. 程式人生 > >android 新增依賴出現Failed to resolve:"你新增的依賴名" 或者出現

android 新增依賴出現Failed to resolve:"你新增的依賴名" 或者出現 阿新 發佈:2019-01-12

首先出現的問題是 [email protected]的問題,經過一波百度之後都說是AS build.gradle版本3.0以上的問題,但是經過一波修改之後並沒有什麼卵用,並沒有解決這個問題,並且出現了新的問題,就是Failed to resolve:.......這個問題了,這面貼下終極解決方案,希望可以幫到你。

問題截圖:


解決方案:在整個工程的build.gradle中新增以下框內框內程式碼:


為了大家複製方便直接貼下新增的程式碼:

allprojects{
    repositories{
        jcenter()
        maven {
            url "https://jitpack.io"
        }
    }
}

如果覺得對你有用頂一下吧,嘻嘻。

相關推薦

android 新增依賴出現Failed to resolve:"新增依賴" 或者出現 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="30545552455770735f5d40595c55

首先出現的問題是 [email protected]的問題,經過一波百度之後都說是AS build.gradle版本3.0以上的問題,但是經過一波修改之後並沒有什麼卵用,並沒有解決這個問題,並且出現了新的問題,就是Failed to resolve:.......

[轉]在vs2008上編譯獲取cpu程式碼出現的錯誤- error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="91ced6f4e5c1e3fef2f4e2e2

1>正在連結...1>LINK : 沒有找到 E:\yy\20110112\cpuproject\cpu\Debug\cpu.exe 或上一個增量連結沒有生成它;正在執行完全連結1>cpu.obj : error LNK2019: 無法解析的外部符號 ,該符號在函式 "void __cde

Android studio 下載依賴出現Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8feeffffcfebeaed

Android studio下載依賴時出現無法解析':app @ debug / compileClasspath'的依賴關係錯誤。 原因安裝Android studio時設定了代理或映象伺服器。  解決方法,在C盤中找到.gradle資料夾(一般都是C盤)如我的位置在用記事本開啟.g

android Studio 出現:Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b2a3b3b0b2f2e293e2c

li經千辛萬苦,我的新工程gradle搞定了 但是卻在變異的時候告訴我 Unable to resolve dependency for ':[email protected]/compileClasspath'xxx 等等,導致我的所有的依賴都拿不下來 我去,這不是要我的命嗎 然後又是一

升級 android studio 報錯Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="026372724266676077

根據日誌裡顯示 http 127.0.0.1 。。。 總是無法build,確定是studio引入了本地的ip所以無法下載更新,於是在我們的studio中開啟System Settings 中的 Http Proxy看是否選擇的是 No proxy, 1 選擇了No proxy 如果是,就

Android Studio 3.0.1 gradle編譯報錯 Error : unable to resolve dependency for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0c1

在app目錄下build.gradle中引用了第三方類庫,gradle編譯時不斷報錯,無法resolve第三方類庫,或者無法download第三方類庫dependencies { implementation fileTree(include: ['*.jar'],

Android Studio報錯Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="721302023200171e">[email&#

Android Studio報錯Unable to resolve dependency for’:[email protected]/compileClasspath’:無法引用任何外部依賴的解決辦法 Android Studio 在引用外部依賴時

android studio更新3.2遇到的坑,unable to resolve dependency for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a3b2a2a1a7474747474

距離第一次寫部落格轉眼一週多了,為什麼一直沒寫,真的這個過程中遇到了一些棘手的小麻煩 android studio更新3.2遇到的坑 4天前手賤更新了studio,然後新建工程就一堆報錯,照著網上的很多類似的部落格進行了處理,總結了一下無非以下幾種 1、降低依

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a6c7d6d6e6c2c3c4d3c1e7c8c2d4c9cfc2f2c3

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Open File Sh

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="56372626163233342331">[email prot

今天匯入Android專案的時候突然遇到了一個問題,‘Unable to resolve dependency’ 有點頭疼,然後就在網上找了很多方法,發現都不行,最後發現,原來是 這個檔案的配置出了錯,我新匯入的gradle-4.6-all.zip,我的專案的是gradle-4.4

關於 Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="69081919290d0c0b1c0e28070d1b06000d3d0c1

Android studio升級到3.0往上之後,遇到的最噁心的一件事,本人及其懶惰,從來不寫文章,但這個問題還是要記錄下來。 百度了NNNNN多之後,問題都沒有解決,像關掉"offline work"開關、或者匯入的model 的build版本不一致這種方案,我也不知道發

android.view.WindowManager$BadTokenException: Unable to add window -- token <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2

android.view.WindowManager$BadTokenException: Unable to add window – token [email protected] is

win10 QtCreator5.10 編譯opengl出現 error: undefined reference to `<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="17487e7a6748487

1、在pro檔案中新增:  LIBS += -lopengl32 -lGLU32 -lglut 2、在程式中新增以下3個頭檔案: 3、下載glut32庫,(已上傳到本地),解壓出現以下5個檔案 為簡單起見,複製全部檔案到安裝路徑的三個地方:      

mysql叢集出現:Last_IO_Error: error connecting to master '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="493b2c392509313131">

網上的經驗:網路不同,賬號密碼不對,密碼太長,密碼由 # 字元;檢查MASTER_HOST,MASTER_USER,MASTER_PASSWORD(不知道 MASTER_LOG_FILE 有沒有影響) 但是,對我都沒用,突然想起來用navicat登陸mysql時出現報錯:   client does no

AndroidStudio升級報錯Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd9c8d8dbd99989f889a"

近日升級AS到3.2.1版本,新建工程時報錯:   Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:

Unable to resolve dependency for :<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5b3a2b2b1b3f3e23142b2f32343528">[email 

這個是android studio 3.0的坑  如果你的專案裡面有好多個依賴module就會報很多行相似的錯誤原因是你的app下面的build.gradel裡面的buildTypes{ debug{ ... } release{ ..

com.bea.xml.XmlException: failed to load java type corresponding to <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f590c8829

在myeclipse裡部署Weblogic專案(web project)時候的問題 配置:Weblogic9.2  MyEclipse 7.0 第一:瀏覽器瀏覽時,報以下錯誤 Error 404--Not Found From RFC 2068 Hypertext T

unable to resolve dependency for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4322333303">[email protected]a>。。。解決方

最近把android studio升級到了3.2,出了一堆問題,主要就是無法更新無法下載之類的。 包括出現的: unable to resolve dependency for [email protected]。。。 Open File Show

git上傳到一半最後報error:failed to push some refs to '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a4c3cdd0e4c3cdd0ccd1c68ac7cbc9"

今天上傳程式碼到git上,上傳一半卡住了,過了一會兒就報: Counting objects: 52, done. Delta compression using up to 2 threads. Compressing objects: 100% (48/48), don

CordovaError: Failed to fetch platform <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d4e425f49425b4c004c43495f4244496d1b03

CordovaError: Failed to fetch platform [email protected]Error: cmd: Command failed with exit code ENOENT 解決:1、刪除platform資料夾2、刪除C:\Use