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

Build was configured to prefer settings repositories over project repositories

這篇具有很好參考價(jià)值的文章主要介紹了Build was configured to prefer settings repositories over project repositories。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'

這段話的大概意思就是:比起在 build.gradle(project)下配置,在 setting.gradle 下配置更合適,但是 build.gradle 卻配置了 maven 。

在報(bào)錯(cuò)提示下,去查看project的build.gradle,發(fā)現(xiàn)配置了 maven,解決辦法就是把 allprojects 閉包下的內(nèi)容全部轉(zhuǎn)移到 setting.gradle 配置文件中。

build was configured to prefer settings repositories over project repositori,maven,gradle,android,Powered by 金山文檔

如下圖:

build was configured to prefer settings repositories over project repositori,maven,gradle,android,Powered by 金山文檔

把 allproject 閉包轉(zhuǎn)移到 setting.gradle 之后,重新編譯運(yùn)行即可。文章來源地址http://www.zghlxwxcb.cn/news/detail-773550.html

到了這里,關(guān)于Build was configured to prefer settings repositories over project repositories的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • Android Your build is currently configured to use Java 17.0.6 and Gradle 6.5.

    Android Your build is currently configured to use Java 17.0.6 and Gradle 6.5.

    Android 項(xiàng)目報(bào)錯(cuò) 原因:是因?yàn)?Java 版本和 Gradle 版本不匹配,可以調(diào)節(jié) Java 版本或者 Gradle 版本,但是改動(dòng) Gradle 風(fēng)險(xiǎn)比較大,有可能會(huì)導(dǎo)致其他問題,所以推薦修改 Java 版本,如果熟練可以忽略隨便調(diào)整。 當(dāng)前報(bào)錯(cuò)意思是:當(dāng)前編譯配置是 Java 17.0.6 ,如果需要使用這個(gè)版本

    2024年02月19日
    瀏覽(29)
  • Jenkins構(gòu)建失敗提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...

    Jenkins構(gòu)建失敗提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...

    問題現(xiàn)象 :在jenkins的使用過程中,創(chuàng)建好項(xiàng)目后,執(zhí)行構(gòu)建的后,任務(wù)失敗,查詢控制臺(tái)輸出打印如下: ?錯(cuò)誤提示為:ERROR: Couldn\\\'t find any revision to build. Verify the repository and branch configuration for this job. 問題原因: Jenkins調(diào)用git時(shí)用了默認(rèn)的*/master,而gitlab默認(rèn)使用的是main,打

    2024年02月11日
    瀏覽(21)
  • CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles“.解決方案(親測有效)

    CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles“.解決方案(親測有效)

    CMake編譯OpenCV4.6.0過程中一直出錯(cuò): CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 解決方案如下: 將CMAKE_MAKE_PROGRAM項(xiàng)后面的路徑設(shè)置為Qt安裝路徑下的路徑。例如:D:/Qt/Qt5.12.12/Tools/mingw7

    2024年02月15日
    瀏覽(92)
  • Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 6.8.3.

    Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 6.8.3.

    Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 6.8.3. 翻譯: 不支持的 Java。您的構(gòu)建當(dāng)前配置為使用 Java 17.0.6 和 Gradle 6.8.3。 這個(gè)翻譯害死人,其實(shí)要表達(dá)的意思就是 gradle 版本和 java 版本不匹配,導(dǎo)致無法編譯成功 知道版本不匹配,那就簡單了 那么現(xiàn)在就有

    2024年02月11日
    瀏覽(23)
  • Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 5.4.1.

    解決此問題的方法是升級 Gradle 包裝器(Gradle wrapper)到 7.2 版本,并重新導(dǎo)入項(xiàng)目。升級 Gradle 包裝器會(huì)自動(dòng)下載并使用指定版本的 Gradle。 請按照以下步驟進(jìn)行操作: 打開項(xiàng)目文件夾,找到包含 Gradle 相關(guān)文件的目錄。通常,這個(gè)目錄名為 “gradle”。 在該目錄中,找到名為

    2024年02月06日
    瀏覽(36)
  • Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 7.0.2.

    Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 7.0.2.

    導(dǎo)入別人項(xiàng)目時(shí)出現(xiàn)的bug,提示java環(huán)境版本和Gradle版本不匹配 因?yàn)閷?dǎo)入的項(xiàng)目所需的gradle版本對應(yīng)的是java8,而Android Studio 2022.2.1 版本自帶的java版本為17,它會(huì)使用默認(rèn)的java版本去編譯項(xiàng)目,所以編譯時(shí)導(dǎo)致報(bào)錯(cuò)。 點(diǎn)擊File -- Settings 進(jìn)入后搜索Gradle 這里看到j(luò)dk版本默認(rèn)用的

    2024年02月13日
    瀏覽(20)
  • Unsupported Java. Your build is currently configured to use Java 17.0.7 and Gradle 6.1.1.

    Unsupported Java. Your build is currently configured to use Java 17.0.7 and Gradle 6.1.1.

    不支持的Java,你的構(gòu)建當(dāng)前配置使用的是Java17和Gradle6.1.1。因?yàn)镚radle6.1.1需要的是Java11,所以使用Android Studio默認(rèn)的Java17肯定報(bào)錯(cuò)。 以上是報(bào)錯(cuò)信息的截圖,以下是報(bào)錯(cuò)信息的具體內(nèi)容。 https://pan.baidu.com/s/1H4HLreSVagAUFGlcf-PzqQ?pwd=ff9n 提取碼:ff9n 安裝時(shí)候一直點(diǎn)下一步即可,安

    2024年02月01日
    瀏覽(24)
  • 問題記錄:jenkins流水線報(bào)錯(cuò)ERROR: Couldn‘t find any revision to build. Verify the repository and branch config

    注意配置的gitlab倉庫地址是否正確, 是否少一個(gè)端口號 ,這是gitlab本身問題,導(dǎo)致的URL不正確。 gitlab配置不正確時(shí)可能如下: git@1 92 .1 68 . 130 . 1 31/ xxx / yyy .git 也就是clone時(shí)去訪問80端口去了? 而實(shí)際上宿主機(jī)80端口已被占用為其他組件的訪問地址,此時(shí)去訪問80的 xxx/yyy.

    2024年02月03日
    瀏覽(25)
  • Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

    Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

    當(dāng)出現(xiàn)此錯(cuò)誤時(shí),一般通過直接搜索該錯(cuò)誤,其他指南給出的解決辦法不一定適用于自己的情況。需要根據(jù)報(bào)錯(cuò)內(nèi)容中具體的error找到解決方案。 個(gè)人報(bào)錯(cuò)情況如下 ?根本錯(cuò)誤在于Microsoft Visual C++ 14.0 or greater is required. 解決方法 重新安裝c++的各個(gè)版本沒有用,即便我的電腦上

    2024年02月13日
    瀏覽(34)
  • Unsupported Java. Your build is currently configured to use Java 1.8.0_192 and Gradle 5.6.4.

    Unsupported Java. Your build is currently configured to use Java 1.8.0_192 and Gradle 5.6.4.

    打開android的一個(gè)項(xiàng)目結(jié)果打不了報(bào)錯(cuò) Unsupported Java.? Your build is currently configured to use Java 1.8.0_192 and Gradle 5.6.4. Possible solution: ?- Open Gradle wrapper settings, change `distributionUrl` property to use compatible Gradle version and reload the project 錯(cuò)誤嘗試一:?剛開始真的看日志以為是不是配置的jdk版

    2024年03月14日
    瀏覽(22)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包