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

android gradle 8.0.1構(gòu)建失?。–ould not resolve com.android.tools.build:gradle:8.0.1.)

這篇具有很好參考價(jià)值的文章主要介紹了android gradle 8.0.1構(gòu)建失?。–ould not resolve com.android.tools.build:gradle:8.0.1.)。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

1. 問(wèn)題

A problem occurred configuring root project 'tomato'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:8.0.1.
     Required by:
         project : > com.android.application:com.android.application.gradle.plugin:8.0.1
         project : > com.android.library:com.android.library.gradle.plugin:8.0.1
      > No matching variant of com.android.tools.build:gradle:8.0.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.api-version' with value '8.0' but:
          - Variant 'apiElements' capability com.android.tools.build:gradle:8.0.1 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'javadocElements' capability com.android.tools.build:gradle:8.0.1 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'runtimeElements' capability com.android.tools.build:gradle:8.0.1 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'sourcesElements' capability com.android.tools.build:gradle:8.0.1 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:

背景:初次創(chuàng)建項(xiàng)目失敗。
分析:

- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.0')

分析及解決

很可能是java 8的問(wèn)題,(ps:一般初構(gòu)建項(xiàng)目,在更新as之后很容易出現(xiàn)這個(gè)問(wèn)題),通常改為Java 11來(lái)處理。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-565330.html

  • 打開(kāi)Android Studio并導(dǎo)航到File>Project Structure。
  • SDK location面板中點(diǎn)擊Gradle Settings
  • 選擇Java11或者內(nèi)置的高版本Java JDK(embedded java sdk)
  • 再次Sync(等待下載等操作完畢)

到了這里,關(guān)于android gradle 8.0.1構(gòu)建失?。–ould not resolve com.android.tools.build:gradle:8.0.1.)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

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

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

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

    2024年02月11日
    瀏覽(21)
  • ChatGPT問(wèn)答:Android項(xiàng)目報(bào)錯(cuò)Could not resolve com.android.tools.build:gradle:7.4.2.

    ChatGPT問(wèn)答:Android項(xiàng)目報(bào)錯(cuò)Could not resolve com.android.tools.build:gradle:7.4.2.

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

    2024年02月08日
    瀏覽(111)
  • Cordova 12編譯報(bào)錯(cuò)Could not resolve com.android.tools.build:gradle:7.4.2.

    一、在使用Cordova12 創(chuàng)建項(xiàng)目后編譯時(shí)候報(bào)錯(cuò) 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)
  • 【錯(cuò)誤記錄】Android Studio 編譯報(bào)錯(cuò) ( Could not resolve com.android.tools.build:gradle:7.4.2. )

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

    在 Mac 中安裝了 Android Studio , 首次創(chuàng)建應(yīng)用運(yùn)行時(shí) , 報(bào)如下錯(cuò)誤 : 報(bào)錯(cuò)信息中有提示 : 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新項(xiàng)目出錯(cuò)Could not resolve com.android.tools.build:aapt2***

    本人遇到的解決辦法: 1、修改項(xiàng)目根目錄下的build.gradle文件里下面的版本號(hào) 將以上兩個(gè)的版本號(hào)對(duì)應(yīng)改好。具體兩個(gè)版本號(hào)的對(duì)應(yīng)關(guān)系,請(qǐng)參看下面的這個(gè)博客地址 Android Gradle插件對(duì)應(yīng)的Gradle所需版本_帥次的博客-CSDN博客_gradle版本號(hào)對(duì)應(yīng)的版本 ?

    2024年02月15日
    瀏覽(100)
  • 【坑】導(dǎo)入項(xiàng)目報(bào)錯(cuò)Could not find com.android.tools.build:gradle:7.4.0

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

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

    2024年02月02日
    瀏覽(97)
  • 【錯(cuò)誤記錄】Android 編譯報(bào)錯(cuò) ( Could not resolve xxx | 手動(dòng)下載依賴庫(kù)并進(jìn)行本地配置 Gradle 依賴的解決方案 | 構(gòu)建 Maven 依賴下載路徑 )

    【錯(cuò)誤記錄】Android 編譯報(bào)錯(cuò) ( Could not resolve xxx | 手動(dòng)下載依賴庫(kù)并進(jìn)行本地配置 Gradle 依賴的解決方案 | 構(gòu)建 Maven 依賴下載路徑 )

    編譯 Android Studio 項(xiàng)目時(shí) , 報(bào)如下錯(cuò)誤 , 下載依賴庫(kù)失敗 ; 報(bào)錯(cuò)信息 : 下面是 當(dāng)前 Android 項(xiàng)目的 Gradle 配置中的 Maven 倉(cāng)庫(kù) ; 其中使用 maven { url \\\"https://repo.spring.io/plugins-release/\\\" } 配置的 Maven 倉(cāng)庫(kù)就是對(duì)應(yīng)的地址 ; 使用 google() 函數(shù)配置的 Maven 倉(cāng)庫(kù)地址 是 https://maven.google.com/ , 可

    2024年04月15日
    瀏覽(106)
  • Gradle構(gòu)建報(bào):Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.1.

    問(wèn)題: 解決: 問(wèn)題是在Gradle構(gòu)建過(guò)程中遇到了解析插件spring-boot-gradle-plugin版本3.1.1失敗的問(wèn)題。錯(cuò)誤的原因是插件需要的Java版本是17,而你正在使用的Java版本是8。 解決這個(gè)問(wèn)題的方式是升級(jí)Java版本。需要一個(gè)與插件兼容的Java版本,這里是Java 17。以下是你可以按照的步驟

    2024年01月23日
    瀏覽(100)
  • android項(xiàng)目編譯時(shí),Gradle Sync正常,編譯報(bào)錯(cuò),提示 Could not resolve。。。

    android項(xiàng)目編譯時(shí),Gradle Sync正常,編譯報(bào)錯(cuò),提示 Could not resolve。。。

    1、問(wèn)題現(xiàn)象 在android項(xiàng)目編譯時(shí),Gradle Sync正常,編譯報(bào)錯(cuò),提示 Could not resolve。。。 2、解決辦法 處理上述問(wèn)題時(shí),使用了四種解決辦法,最后一種方法4生效。 方法1: 重新編譯: 先清理項(xiàng)目后在重新編譯項(xiàng)目。 該方法對(duì)于本次錯(cuò)誤不生效。 方法2: 清除項(xiàng)目的所有資源

    2024年02月13日
    瀏覽(29)
  • Android問(wèn)題筆記二十五:在構(gòu)建提示“Could not resolve all files for configuration ‘:app:debugRuntimeClasspath”

    Android問(wèn)題筆記二十五:在構(gòu)建提示“Could not resolve all files for configuration ‘:app:debugRuntimeClasspath”

    專欄分享 點(diǎn)擊跳轉(zhuǎn)=Unity3D特效百例 點(diǎn)擊跳轉(zhuǎn)=案例項(xiàng)目實(shí)戰(zhàn)源碼 點(diǎn)擊跳轉(zhuǎn)=游戲腳本-輔助自動(dòng)化 點(diǎn)擊跳轉(zhuǎn)=Android控件全解手冊(cè) 點(diǎn)擊跳轉(zhuǎn)=Scratch編程案例 點(diǎn)擊跳轉(zhuǎn)=軟考全系列 眾所周知,人生是一個(gè)漫長(zhǎng)的流程,不斷 克服困難 ,不斷反思前進(jìn)的過(guò)程。在這個(gè)過(guò)程中會(huì)產(chǎn)生很多對(duì)

    2024年02月03日
    瀏覽(23)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包