国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【Android】 No matching variant of com.android.tools.build:gradle:[版本號] was found

這篇具有很好參考價值的文章主要介紹了【Android】 No matching variant of com.android.tools.build:gradle:[版本號] was found。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

項目報錯

 No matching variant of com.android.tools.build:gradle:8.1.1 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin

問題原因

這個錯誤意味著在配置構(gòu)建工具的Gradle插件時,沒有找到與所需配置匹配的com.android.tools.build:gradle:8.1.1版本。錯誤消息中提到了一些要求和屬性,解釋如下:

  1. “The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally”:這表示消費者(即您的項目)配置為在運行時使用一個庫,該庫與Java 8兼容,打包為一個jar文件,并將其依賴項聲明為外部依賴。

  2. “attribute ‘org.gradle.plugin’”:這是指Gradle插件的屬性。Gradle插件是用于構(gòu)建和打包Android應(yīng)用程序的工具。

解決步驟:

  1. 檢查jdk版本

【Android】 No matching variant of com.android.tools.build:gradle:[版本號] was found,Android,android

配置為Embeded JDK
【Android】 No matching variant of com.android.tools.build:gradle:[版本號] was found,Android,android

  1. 檢查您的構(gòu)建腳本中的Gradle插件版本配置。確保您的構(gòu)建腳本中指定的Gradle插件版本與您要使用的com.android.tools.build:gradle版本是兼容的。您可以嘗試更新Gradle插件版本或選擇與您正在使用的Gradle插件版本兼容的com.android.tools.build:gradle版本。

  2. 檢查您的構(gòu)建腳本中的其他依賴項和配置。確保您的構(gòu)建腳本中的其他依賴項和配置與您正在使用的Gradle插件版本兼容。

  3. 如果您的項目中使用了其他插件或庫,請確保它們與您正在使用的Gradle插件版本兼容,并且不會引發(fā)依賴沖突。

  4. 如果您使用的是Android Studio,請嘗試清理和重新構(gòu)建您的項目,以確保所有依賴項正確下載和配置。文章來源地址http://www.zghlxwxcb.cn/news/detail-714041.html

到了這里,關(guān)于【Android】 No matching variant of com.android.tools.build:gradle:[版本號] was found的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Could not resolve com.android.tools.build:gradle:7.4.2.

    Could not resolve com.android.tools.build:gradle:7.4.2.

    Android Studio 新建工程時報錯 Could not resolve com.android.tools.build:gradle:7.4.2. 原因: Android Studio默認(rèn)的JDK版本與項目配置的Gradle所需的JDK不一致導(dǎo)致沖突所致 解決方法:進(jìn)入Preferences-Build,Execution,Deployment-Build Tools-Gradle中,將Gradle user home和項目的Gradle JDK改為一樣的版本目錄

    2024年02月11日
    瀏覽(22)
  • 解決Build failed:Could not resolve com.android.tools.build:gradle:XXX

    解決Build failed:Could not resolve com.android.tools.build:gradle:XXX

    先創(chuàng)建的項目在build時出現(xiàn)下面的報錯: 原因:此為Android Studio默認(rèn)的JDK版本與項目配置的Gradle所需的JDK不一致導(dǎo)致沖突所致。要求選擇同一版本的JDK。 解決方案:點擊File --Project Structure -SDK Location-JDK location gradle Settings,將Gradle user home和項目的Gradle JDK改為一樣的版本目錄。

    2024年02月11日
    瀏覽(21)
  • Android Studio報錯:Could not resolve com.android.tools.build:gradle:8.0.0

    Android Studio報錯:Could not resolve com.android.tools.build:gradle:8.0.0

    Android Studio 新建項目會報以下錯誤: 完整版報錯信息如下: 原因:此為Android Studio默認(rèn)的JDK版本與項目配置的Gradle所需的JDK不一致導(dǎo)致沖突所致。要求選擇同一版本的JDK,可以選擇Android Studio自帶的jdk17。 解決方案:點擊File --Project Structure -SDK Location-JDK location gradle Settings,將

    2024年02月11日
    瀏覽(21)
  • 解決 Could not resolve com.android.tools.build:gradle:7.4.1

    解決 Could not resolve com.android.tools.build:gradle:7.4.1

    今天新建了一個工程,報了如下錯誤 A problem occurred configuring root project \\\'My Application\\\'. Could not resolve all files for configuration \\\':classpath\\\'. ?? Could not resolve com.android.tools.build:gradle:7.4.1. ???? Required by: ???????? project : com.android.application:com.android.application.gradle.plugin:7.4.1 ??????

    2024年02月02日
    瀏覽(23)
  • Android Studio 解決Could not resolve com.android.tools.build:gradle:7.4.2問題

    Android Studio 解決Could not resolve com.android.tools.build:gradle:7.4.2問題

    A problem occurred configuring root project \\\'MyApplication2\\\'. Could not resolve all files for configuration \\\':classpath\\\'. ?? Could not resolve com.android.tools.build:gradle:7.4.2. ?? ? Required by: ?? ? ? ? project : com.android.application:com.android.application.gradle.plugin:7.4.2 ?? ? ? ? project : com.android.library:com.android.library.

    2024年02月01日
    瀏覽(128)
  • ChatGPT問答:Android項目報錯Could not resolve com.android.tools.build:gradle:7.4.2.

    ChatGPT問答:Android項目報錯Could not resolve com.android.tools.build:gradle:7.4.2.

    這個錯誤提示表明你在構(gòu)建你的Android項目時,Gradle無法解析com.android.tools.build:gradle:7.4.2這個版本的Gradle插件??赡苁且驗檫@個版本的Gradle插件不存在,或者你的網(wǎng)絡(luò)連接有問題,導(dǎo)致Gradle無法從遠(yuǎn)程倉庫下載這個插件。 為了解決這個問題,你可以嘗試以下幾個方法: 檢查網(wǎng)

    2024年02月08日
    瀏覽(111)
  • 【錯誤記錄】Android Studio 編譯報錯 ( Could not resolve com.android.tools.build:gradle:7.4.2. )

    【錯誤記錄】Android Studio 編譯報錯 ( Could not resolve com.android.tools.build:gradle:7.4.2. )

    在 Mac 中安裝了 Android Studio , 首次創(chuàng)建應(yīng)用運行時 , 報如下錯誤 : 報錯信息中有提示 : Doesn’t say anything about its target Java version (required compatibility with Java 8) A problem occurred configuring root project ‘DataBinding’. Could not resolve all files for configuration ‘:classpath’. Could not resolve com.android.

    2024年02月08日
    瀏覽(98)
  • android studio構(gòu)建項目報錯Could not create an instance of type com.android.build.api.variant.impl.Applicat

    android studio構(gòu)建項目報錯Could not create an instance of type com.android.build.api.variant.impl.Applicat

    Could not create an instance of type com.android.build.api.variant.impl.ApplicationVariantImpl 這個錯誤通常是由于Gradle插件版本不兼容導(dǎo)致的。你可能正在使用的Gradle插件版本與你的Android Studio版本不兼容。 要解決這個問題,你可以嘗試以下解決方法: 在你的項目的build.gradle文件中,將com.andro

    2024年02月01日
    瀏覽(26)
  • 【坑】導(dǎo)入項目報錯Could not find com.android.tools.build:gradle:7.4.0

    【坑】導(dǎo)入項目報錯Could not find com.android.tools.build:gradle:7.4.0

    報錯的圖沒得了,反正就是Could not find com.android.tools.build:gradle:7.4.0 這個報錯解決思路: 1、首先導(dǎo)入項目你不要直接File-----Open,你要FIle------New------Import Project 2、看你gradle配置 setting ----- Build,Exception,Deployment-------Gradle ①home是你下載的gradle路徑 ②Gradle 的JDK要和項目JDK一致

    2024年02月02日
    瀏覽(97)
  • Cordova 12編譯報錯Could not resolve com.android.tools.build:gradle:7.4.2.

    一、在使用Cordova12 創(chuàng)建項目后編譯時候報錯 A problem occurred configuring root project \\\'HelloCordova\\\'. Could not resolve all files for configuration \\\':classpath\\\'. ? ? Could not resolve com.android.tools.build:gradle:7.4.2.

    2024年02月10日
    瀏覽(25)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包