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

Android ERROR: Failed to resolve: com.github.**** 報(bào)錯(cuò)

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

在運(yùn)行android項(xiàng)目時(shí),總是報(bào)錯(cuò),提示:Android ERROR: Failed to resolve: com.github.****

我原來的build.gradle文件:

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

buildscript {


    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

}

allprojects {
    repositories {
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

可能是項(xiàng)目的Build.gradle 的 maven 倉庫的配的位置不對,更改了之后就可以了

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

        google()
        jcenter()
//        maven { url 'https://www.jitpack.io' } 把這個(gè)放到下面,立馬就好了。
        mavenCentral()
        maven { url 'https://repo1.maven.org/maven2/' }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.0.1"   //這個(gè)一定要注意,原文件是4.0.1這里也是4.0.1,要一致;

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        mavenCentral()
        maven { url 'https://repo1.maven.org/maven2/' }
        maven { url "https://oss.jfrog.org/libs-snapshot" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

更改了之后我的項(xiàng)目就可以順利運(yùn)行了(參考)。文章來源地址http://www.zghlxwxcb.cn/news/detail-758227.html


到了這里,關(guān)于Android ERROR: Failed to resolve: com.github.**** 報(bào)錯(cuò)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(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)文章

  • clone報(bào)錯(cuò)fatal: unable to access ‘https://github.com/...‘: Failed to connect to github.com port

    clone報(bào)錯(cuò)fatal: unable to access ‘https://github.com/...‘: Failed to connect to github.com port

    原因是本機(jī)代理端口和git端口不一致。 第一步、找到本機(jī)代理端口號(紅框部分) 第二步、修改git端口號 在git-bash執(zhí)行如下兩條指令 問題解決! [1][報(bào)錯(cuò)解決] Failed to connect to github.com port 443 after ***** ms: Couldn‘t connect to server [2]GitHub 新手詳細(xì)教程

    2024年02月06日
    瀏覽(26)
  • 解決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日
    瀏覽(22)
  • Git clone報(bào)錯(cuò):fatal: unable to access ‘https://github.com/.....‘: Failed to connect to github.com port

    Git clone報(bào)錯(cuò):fatal: unable to access ‘https://github.com/.....‘: Failed to connect to github.com port

    使用Git克隆項(xiàng)目是,有時(shí)候會報(bào)錯(cuò):Failed to connect to github.com port 443 after 21096 ms: Couldn’t connect to server 原因是本機(jī)代理端口和git端口不一致。 我的解決方法: 然后開啟手動(dòng)代理模式: 隨便在哪個(gè)地方,右鍵選擇Git Bash Here(得安裝了Git),然后在彈出的命令行窗口中分別輸入一

    2024年04月13日
    瀏覽(104)
  • 解決 github 報(bào)錯(cuò) Failed to connect to github.com port 443:connection timed out

    你在使用github的時(shí)候,是不是會經(jīng)常出現(xiàn)Failed to connect to github.com port 443:connection timed out報(bào)錯(cuò),這是什么原因造成的呢?我們應(yīng)該如何解決呢?請繼續(xù)往下看 這是由于電腦里開啟了代理,例如開啟了翻墻軟件等,就會造成這個(gè)原因 執(zhí)行命令:

    2024年02月11日
    瀏覽(27)
  • Git報(bào)錯(cuò): Failed to connect to github.com port 443 解決方案

    Git報(bào)錯(cuò): Failed to connect to github.com port 443 解決方案

    兩種情況: 第一種情況自己有vpn ,網(wǎng)頁可以打開github。說明命令行在拉取/推送代碼時(shí)并沒有使用vpn進(jìn)行代理 第二種情況沒有vpn ,這時(shí)可以去某些網(wǎng)站上找一些代理ip+port 解決辦法:配置http代理Windows、Linux、Mac OS 中 git 命令相同: 配置socks5代理 配置http代理 注意: 命令中的

    2024年02月11日
    瀏覽(42)
  • it報(bào)錯(cuò): Failed to connect to github.com port 443 解決方案

    it報(bào)錯(cuò): Failed to connect to github.com port 443 解決方案

    轉(zhuǎn)自:?Git報(bào)錯(cuò): Failed to connect to github.com port 443 解決方案-CSDN博客 兩種情況: 第一種情況自己有vpn,網(wǎng)頁可以打開github。說明命令行在拉取/推送代碼時(shí)并沒有使用vpn進(jìn)行代理 第二種情況沒有vpn,這時(shí)可以去某些網(wǎng)站上找一些代理ip+port 解決辦法:配置http代理Windows、Linux、

    2024年01月19日
    瀏覽(21)
  • 【git】Git提交或者報(bào)錯(cuò)fatal:unable to access ‘https://github.com/xxx‘: Failed to connect to github.com

    1. 問題原因 報(bào)錯(cuò)信息: 原因: 在git push時(shí)或者clone時(shí),中間會有g(shù)it的http和https代理,但是我們本地環(huán)境本身就有SSL協(xié)議了,所以取消git的https或者h(yuǎn)ttp代理即可 2. 解決方案 最好的解決方法還是配置ssh方法訪問 鏈接:Github配置SSH訪問 避免使用https訪問經(jīng)常網(wǎng)絡(luò)連接失敗或者需要

    2024年02月05日
    瀏覽(92)
  • Android Studio報(bào)錯(cuò):Could not resolve com.android.tools.build:gradle:8.0.0

    Android Studio報(bào)錯(cuò):Could not resolve com.android.tools.build:gradle:8.0.0

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

    2024年02月11日
    瀏覽(21)
  • 報(bào)錯(cuò)解決:Failed to connect to github.com port 443: Connection refuesd

    報(bào)錯(cuò)解決:Failed to connect to github.com port 443: Connection refuesd

    今天在用git下載時(shí)遇到錯(cuò)誤: Cloning into \\\'xxxxx\\\'... fatal: unable to access \\\'https://github.com/xxxxxxxx.git/\\\': Failed to connect to github.com port 443: Connection refused 查詢后嘗試以下方法解決: 1.查看自己的本機(jī)系統(tǒng)代理(設(shè)置---網(wǎng)絡(luò)和Internet---代理---地址:端口): 2.修改git配置:(其中的xxxx改為你

    2024年02月04日
    瀏覽(24)
  • git報(bào)錯(cuò):Failed to connect to github.com port 443: Timed out

    git報(bào)錯(cuò):Failed to connect to github.com port 443: Timed out

    git push代碼時(shí),報(bào)錯(cuò) 接著發(fā)現(xiàn)無法ping通github.com 思路 修改hosts文件,讓主機(jī)跳過DNS服務(wù)器,直接根據(jù)hosts配置信息替換域名 步驟 1、在ipaddress.com查詢Github真實(shí)IP地址 2、打開hosts文件,一般位于 C:WindowsSystem32driversetchosts ,添加如下配置 3、再ping一下,成功! 而后正常push代碼

    2024年01月20日
    瀏覽(27)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包