1. 程式人生 > >Unable to resolve dependency for :[email 

Unable to resolve dependency for :[email 

這個是android studio 3.0的坑  

如果你的專案裡面有好多個依賴module就會報很多行相似的錯誤

原因是你的app下面的build.gradel裡面的

buildTypes{
          debug{ ... }
          release{ ... }
    }

跟每個module裡面的buildType不一樣 一般都是module裡面的少了幾個欄位  只要到每個module裡面的build.gradle裡面的buildType下面都新增上就好 

buildTypes{
      debug{ }
      release{ }
}

不需要新增內容  新增空就行

然後sync一下就行了

相關推薦

關於 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版本不一致這種方案,我也不知道發

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

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

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="4322333303">[email&#160;protected]a>。。。解決方

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

gradle升到4.4後,報Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1d7c6d6d5d79787f687a">[email

Android studio可以升級到3.1了,預設用的是gradle4.4修改為distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zipbuildscript { re

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

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

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

windows中安裝RabbitMQ時:,unable to connect to node <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e1938083838895a1999999">[email

前言最近在Windows server 2012 R2的百度雲伺服器上安裝rabbitmq時,在執行rabbitmqctl status命令時,一直報錯,開始時出現的如下錯誤:Error: unable to connect to node [email prote

Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b4954544f7b5754585a575354484f">[email&#160;protected]

忘記了root密碼,或者刪了root的一些許可權,換來一堆報錯,比如 ERROR 1142 (42000): SELECT command denied to user 'root'@'localhost' for tabERROR 1045 (28000): Access denied for us

mysql Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="25574a4a5165494a4644494d4a5651">[email&#160;prot

今天做一個遊戲,伺服器呼叫mysql,查詢使用者名稱密碼,結果怎麼也登入不上mysql,在網上找到一個網友的解決方法,按照他的方式一步一步解決了。 問題重現(以下討論範圍僅限Windows環境):   C:\Users\Administrator> mysql

mysql Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="93e1fcfce7d3fffcf0f2fffbfce0e7">[email&#160;prot

好久沒有使用mysql,突然想起來開啟一個以前的mysql資料庫的專案看看,結果開啟頁面時出錯,提示為:mysql Access denied for user [email protected]錯誤 百度了一下,網上說要改my.ini,於是我到mysql的安裝目錄C:\Program Files

undefined reference to symbol '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3242465a405753566d415b555f53415972">[email

/usr/bin/ld: CMakeFiles/xxxx/yyyyy.cpp.o: undefined reference to symbol '[email protected]@GLIBC

Code::Blocks : undefined reference to `<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bac2c2c2c2c2c2fa8e">[email&#160;protec

使用CodeBlocks在編譯程式的時候出現如下錯誤: undefined reference to `[email protected]'undefined reference to `[email protect

關於問題 mysql"Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a7865657e4a6665696b666265797e">[email

1.問題來源:   最近由LAMP轉到LNMP,初次使用LNMP,為了快速入門,直接安裝LNMP組合安裝包。   當啟動mysql資料庫時,出現如下的錯誤資訊   ERROR 1045 (28000): Access denied for user 'r

關於問題 mysql"Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e4968b8b90a4888b8785888c8b9790">[email&#160

+-----------+------+-------------------------------------------+ | host      | user | password                                  | +-----------+---

Ubuntu Uundefined reference to symbol '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f2829d85b2">[email&#160;protected]a>

今天建了一個工程,make後,報錯 /usr/bin/ld: Caculator/Calculator.o: undefined reference to symbol '[email protected]@GLIBC_2.2.5' 因為使用了mathematic

mysql Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6614090912260a0905070a0e091512">[email&#160;prot

問題重現(以下討論範圍僅限Windows環境):  C:\AppServ\MySQL> mysql -u root -p Enter password:  ERROR 1045 (28000): Access denied for user 'root'@'localh

Code::Blocks : undefined reference to `<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="047c7c7c7c7c7c4430">[email&#160;protec

使用CodeBlocks在編譯程式的時候出現如下錯誤: undefined reference to `[email protected]'undefinedreferenceto`[email protected]'undefinedreference