久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

無法解決:com.android.support.design:25.4.0

Failed to resolve: com.android.support.design:25.4.0(無法解決:com.android.support.design:25.4.0)
本文介紹了無法解決:com.android.support.design:25.4.0的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我在 build.gradle(Module:app) 中添加了以下行:

I added the following line to my build.gradle(Module:app):

compile 'com.android.support:design:25.4.0' 

但是在執(zhí)行 Gradle 時(shí),我得到了

But when executing Gradle I'm getting

Failed to resolve: com.android.support.design:25.4.0

我從 android 支持設(shè)計(jì)庫中獲得了支持代碼 并將其添加到新項(xiàng)目中.我將它添加到依賴部分,如下所示:

I got that the support code from the android support design library and added it to a new project. I added it to the dependency section as such:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:design:25.4.0'
}

關(guān)于我做錯(cuò)了什么有什么想法嗎?

Any ideas on what I'm doing wrong?

推薦答案

重要提示:現(xiàn)在可以通過 Google 的 Maven 存儲(chǔ)庫獲得支持庫.您無需下載支持SDK 管理器中的存儲(chǔ)庫.有關(guān)詳細(xì)信息,請(qǐng)參閱 支持庫設(shè)置.

Important: The support libraries are now available through Google's Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup.

第 1 步:為您的應(yīng)用打開 build.gradle 文件.

Step 1: Open the build.gradle file for your application.

第 2 步:確保存儲(chǔ)庫部分包含帶有https:/的 maven 部分/maven.google.com"端點(diǎn).例如:

Step 2: Make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint. For example:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

第 3 步: 將支持庫添加到依賴項(xiàng)部分.例如,要添加 v4 core-utils 庫,請(qǐng)?zhí)砑右韵滦?

Step 3: Add the support library to the dependencies section. For example, to add the v4 core-utils library, add the following lines:

dependencies {
    ...
    compile "com.android.support:support-core-utils:25.4.0"
}

這篇關(guān)于無法解決:com.android.support.design:25.4.0的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 国产精品高 | 久久国产日韩欧美 | 成人免费在线电影 | 国产999精品久久久久久 | 亚洲成人精 | 免费一二区 | 欧美综合国产精品久久丁香 | 国产精品日韩 | www.日韩 | 一区二区三区国产好 | 久久99国产精一区二区三区 | 天天操天天操 | 91亚洲欧美| 亚洲一区二区在线免费观看 | 欧美一级在线 | 久久精品免费观看 | 日韩精品视频一区二区三区 | 国产成人精品一区二区 | 国产伦精品一区二区三区四区视频 | 日韩一区二区在线观看 | 亚洲视频在线看 | 国产一级片av | 亚洲日韩中文字幕一区 | 欧美中文在线 | 欧美极品在线观看 | 九一视频在线播放 | h视频免费看 | 亚洲欧洲日韩 | 久久偷人 | 日韩av一区二区在线观看 | 粉嫩高清一区二区三区 | 精品福利一区二区三区 | 人人做人人澡人人爽欧美 | 精品三级在线观看 | 精品国产一区二区三区免费 | 国产一区欧美一区 | 亚洲一二三区不卡 | 欧美黄色一区 | 亚洲精品久久久久久一区二区 | h片在线看| 亚洲交性 |