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

解決Could not find org.jetbrains.kotlin:kotlin-gradle-plugin * 錯(cuò)誤方法

這篇具有很好參考價(jià)值的文章主要介紹了解決Could not find org.jetbrains.kotlin:kotlin-gradle-plugin * 錯(cuò)誤方法。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

出現(xiàn)該錯(cuò)誤的主要原因是當(dāng)前倉庫中沒有適合的包,添加國內(nèi)的maven源即可,具體方法如下:

在 Gradle Scripts->build.gradle 中添加以下國內(nèi)鏡像倉庫,注意兩個(gè)地方都要加:

maven {

??????????? url 'https://maven.aliyun.com/repository/google'

??????? }

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/public'

??????? }

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/jcenter'

??????? }

全部代碼:文章來源地址http://www.zghlxwxcb.cn/news/detail-545891.html

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

//??? ext.kotlin_version = '1.3.72'

??? ext.kotlin_version = "1.5.0"

??? repositories {

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/google'

??????? }

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/public'

??????? }

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/jcenter'

??????? }

??????? google()

//??????? jcenter()

??? }

??? dependencies {



??????? // 4.1.0-alpha10 or above and Android Studio 4.1 Canary 10 or above is required for

??????? // TensorFlow Lite / Machine Learning (ML) binding

??????? classpath 'com.android.tools.build:gradle:4.2.1'

??????? classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"



?? ?}

}



allprojects {

??? repositories {

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/google'

??????? }

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/public'

??????? }

??????? maven {

??????????? url 'https://maven.aliyun.com/repository/jcenter'

??????? }



??????? google()

//??????? jcenter()

??? }

}

到了這里,關(guān)于解決Could not find org.jetbrains.kotlin:kotlin-gradle-plugin * 錯(cuò)誤方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(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)文章

  • 已解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE

    已解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE 出現(xiàn)找不到Spring Boot依賴的錯(cuò)誤可能有多種原因 下滑查看解決方法 以下是一些常見的解決方法: 清理本地Maven倉庫:有時(shí)候

    2024年02月05日
    瀏覽(34)
  • springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

    springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

    jdk8不支持3.0以上的springboot版本,如果你在創(chuàng)建項(xiàng)目的時(shí)候用的是jdk8,那么我建議你在創(chuàng)建好項(xiàng)目之后自行再pom文件里降級(jí),我剛開始接觸springboot時(shí),用的是jdk11,導(dǎo)入的springboot版本是2.7.1,然后弄了差不多半天都找不到原因,然后我就擴(kuò)大了阿里云的搜索地址,自行在pom文

    2024年02月04日
    瀏覽(33)
  • 解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.2 in alimaven

    解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.2 in alimaven

    在部署SpringBoot項(xiàng)目時(shí)遇到pom所有版本號(hào)爆紅,而報(bào)錯(cuò)只有標(biāo)題中的那句話,嘗試了多種方法即便不再報(bào)錯(cuò)但仍爆紅。在查閱和嘗試了多種方法后,我決定刪除之前的maven鏡像配置嘗試一下。 方法: 復(fù)制一下配置代碼,至maven文件下的conf,找到settings.xml,選擇文本方式打開文

    2024年04月17日
    瀏覽(29)
  • 解決maven倉庫導(dǎo)入項(xiàng)目報(bào)錯(cuò)問題:maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom報(bào)錯(cuò)問題

    解決maven倉庫導(dǎo)入項(xiàng)目報(bào)錯(cuò)問題:maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom報(bào)錯(cuò)問題

    1:首先maven倉庫settings.xml加入阿里云配置 mirror ? ? ? idaliyunmaven/id ? ? ? mirrorOf*/mirrorOf ? ? ? name阿里云公共倉庫/name ? ? ? urlhttps://maven.aliyun.com/repository/public/url ? ? /mirror 2:在加入項(xiàng)目的時(shí)候報(bào)錯(cuò)maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom這個(gè)問題的時(shí)候

    2024年02月16日
    瀏覽(27)
  • org.springframework.web.HttpMediaTypeNotAcceptableException:Could not find acceptable representation

    org.springframework.web.HttpMediaTypeNotAcceptableException:Could not find acceptable representation

    SpringBoot 表現(xiàn)層消息一致性處理 項(xiàng)目環(huán)境:?springboot + mybatis-plusde ... 傳輸數(shù)據(jù)格式:json Postman出現(xiàn)請(qǐng)求錯(cuò)誤: IDEA控制臺(tái)警告信息: WARN 11568 --- [p-nio-80-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representati

    2024年02月14日
    瀏覽(30)
  • org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representatio

    org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representatio

    封裝springboot返回值+枚舉出現(xiàn)org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation 代碼實(shí)現(xiàn) 1.定義返回值類ResultData 2.定義枚舉類CTPEnum 3.定義請(qǐng)求controller } 4.啟動(dòng)程序 5.發(fā)送請(qǐng)求 6.問題+解決 Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: Could n

    2024年02月02日
    瀏覽(17)
  • 報(bào)錯(cuò):Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable

    報(bào)錯(cuò):Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable

    前言 這段時(shí)間想著之前開發(fā)的項(xiàng)目不夠完善,并且代碼寫的不夠規(guī)范,就想著獨(dú)立規(guī)范的開發(fā)一個(gè)項(xiàng)目,趁此整合學(xué)過的技術(shù)和豐富自己的項(xiàng)目經(jīng)驗(yàn)以及規(guī)范代碼。 正文 錯(cuò)誤出現(xiàn) 項(xiàng)目跑起來之后,進(jìn)行接口測(cè)試,發(fā)現(xiàn)響應(yīng)出錯(cuò) ?返回控制臺(tái),查看日志輸出: 項(xiàng)目錯(cuò)誤信息

    2024年02月01日
    瀏覽(24)
  • 解決A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask

    構(gòu)建Kotlin項(xiàng)目時(shí)報(bào)錯(cuò)如下: 先檢查是否有其他報(bào)錯(cuò)信息: 例如: 這是說ViewDataBinding有問題,檢查XML文件是否有引用錯(cuò)誤的地方。 2.排除掉代碼層面和xml層面的問題之后,考慮這種問題多半是版本不匹配造成的。一般按照以下步驟排查即可解決: Android Gradle 插件版本與所需的

    2024年02月14日
    瀏覽(17)
  • Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find me.jessyan:aut

    1.如果在Android Studio中運(yùn)行項(xiàng)目,下載依賴包,出現(xiàn)報(bào)錯(cuò)內(nèi)容如下 2.如果構(gòu)建項(xiàng)目時(shí)拉取不到gradle資源,可以將地址修改成阿里云的國內(nèi)鏡像。解決方式如下: 重新在sync Now就可以成功

    2024年02月04日
    瀏覽(90)
  • Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar

    Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar

    在創(chuàng)建Springboot工程時(shí),引入了org.springframework.boot的spring-boot-starter-parent和spring-boot-starter-web,但是提示找不到spring-boot-starter-parent 的jar包,而spring-boot-starter-web的jar包可以找到,配置的是阿里云的maven倉庫。 報(bào)錯(cuò)內(nèi)容: Could not find artifact org.springframework.boot:spring-boot-starter-pare

    2024年02月12日
    瀏覽(19)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包