第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Android studio 3.0:無(wú)法解析依賴:app @ dexOptions

Android studio 3.0:無(wú)法解析依賴:app @ dexOptions

縹緲止盈 2019-09-20 16:49:08
Android studio 3.0:無(wú)法解析依賴:app @ dexOptions 我遷移到Android studio 3.0。因此,項(xiàng)目無(wú)法編譯名為“:animator”的模塊,它會(huì)顯示以下錯(cuò)誤: Error:Unable to resolve dependency for ':app@dexOptions/compileClasspath': Could not resolve project :animators. <a href="openFile:/home/mobilepowered/MobilePowered/MyInnovalee/trunk17-10-2017/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:app@dexOptions/compileClasspath&#39;: Could not resolve project :animators.">Show Details</a>并顯示詳細(xì)信息提供此日志: Unable to resolve dependency for ':app@dexOptions/compileClasspath': Could not resolve project :animators. Could not resolve project :animators. Required by:     project :app Unable to find a matching configuration of project :animators:      - Configuration 'debugApiElements':          - Required com.android.build.api.attributes.BuildTypeAttr 'dexOptions' and found incompatible value 'debug'.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.          - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required.          - Required org.gradle.api.attributes.Usage 'java-api' and found compatible value 'java-api'.      - Configuration 'debugRuntimeElements':          - Required com.android.build.api.attributes.BuildTypeAttr 'dexOptions' and found incompatible value 'debug'.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.          - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required.          - Required org.gradle.api.attributes.Usage 'java-api' and found incompatible value 'java-runtime'.      - Configuration 'releaseApiElements':          - Required com.android.build.api.attributes.BuildTypeAttr 'dexOptions' and found incompatible value 'release'.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.     
查看完整描述

3 回答

?
千萬(wàn)里不及你

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超9個(gè)贊

如官方遷移指南中所述,在以下情況下會(huì)遇到此錯(cuò)誤:


您的應(yīng)用程序包含庫(kù)依賴項(xiàng)不包含的構(gòu)建類型


android {

  buildTypes {

      release {

          ...

      }

      dexOptions {

          ...

        // release & debug is in project animators

        matchingFallbacks = ['release', 'debug']

      }

      debug {

          ...

      }

    }

}

設(shè)置匹配配置回退顯然是解決這個(gè)問(wèn)題的正確方法。


查看完整回答
反對(duì) 回復(fù) 2019-09-20
?
紅顏莎娜

TA貢獻(xiàn)1842條經(jīng)驗(yàn) 獲得超13個(gè)贊

確保你在項(xiàng)目中

  1. 單擊文件 > 設(shè)置(在Mac上, Android Studio > 首選項(xiàng))打開(kāi)首選項(xiàng)

  2. 在左窗格中,單擊“ 生成”,“執(zhí)行”,“部署 ”>>“ Gradle”。

  3. 取消選中 / 禁用Offline work復(fù)選框。

  4. 單擊應(yīng)用確定。


查看完整回答
反對(duì) 回復(fù) 2019-09-20
  • 3 回答
  • 0 關(guān)注
  • 1162 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)