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

未找到名稱為“默認"的配置.安卓工作室

Configuration with name #39;default#39; not found. Android Studio(未找到名稱為“默認的配置.安卓工作室)
本文介紹了未找到名稱為“默認"的配置.安卓工作室的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個 Android Studio 應用.它有一個庫依賴項(Android-Bootstrap),當我嘗試同步 gradle 時,它??給了我一個錯誤:

I have an Android Studio app. It has a library dependency (Android-Bootstrap), when I try to sync gradle, it gives me an error:

未找到名稱為默認"的配置.

Configuration with name 'default' not found.

我的結構是:

-FTPBackup
   -fotobackup
     -build.gradle
   -Libraries
     -Android-Bootstrap
       -Settings.gradle
       -build.gradle
-Settings.gradle
-Build.gradle

FTPBackup settings.gradle 和 build.gradle:

The FTPBackup settings.gradle and build.gradle:

include ':fotobackup'
include ':libraries:Android-Bootstrap',':Android-Bootstrap'

<小時>

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

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.9.+'
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

而 fotobackup 里面的 build.gradle 是:

And the build.gradle inside fotobackup is:

apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion '19.0.3'

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

apply plugin: 'android'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:+'
    compile project (':libraries:Android-Bootstrap')
}

庫是從 https://github.com/Bearded-Hen/Android-下載的Bootstrap,它有 build.gradle,設置等.

The library is downloaded from https://github.com/Bearded-Hen/Android-Bootstrap and it has build.gradle, settings etc.

怎么了?

推薦答案

一方面,擁有多個 settings.gradle 文件并不好——它只查看頂部- 一級.

For one, it doesn't do good to have more than one settings.gradle file -- it only looks at the top-level one.

當您收到未找到名稱為 'default' 的配置"錯誤時,這確實令人困惑,但這意味著 Gradle 正在某個地方尋找模塊(或 build.gradle)文件,但沒有找到它.在您的情況下,您的 settings.gradle 文件中有這個:

When you get this "Configuration with name 'default' not found" error, it's really confusing, but what it means is that Gradle is looking for a module (or a build.gradle) file someplace, and it's not finding it. In your case, you have this in your settings.gradle file:

include ':libraries:Android-Bootstrap',':Android-Bootstrap'

這使得 Gradle 在 FTPBackup/libraries/Android-Bootstrap 中尋找?guī)?如果您使用的是區(qū)分大小寫的文件系統(tǒng)(當您的意思是 libraries 時,您沒有在問題中輸入錯誤的 Libraries),它可能找不到 FTPBackup/庫/Android-Bootstrap 因為大小寫不同.它還在 FTPBackup/Android-Bootstrap 上尋找另一個庫,但肯定找不到,因為那個目錄不存在.

which is making Gradle look for a library at FTPBackup/libraries/Android-Bootstrap. If you're on a case-sensitive filesystem (and you haven't mistyped Libraries in your question when you meant libraries), it may not find FTPBackup/Libraries/Android-Bootstrap because of the case difference. It's also looking for another library at FTPBackup/Android-Bootstrap, and it's definitely not going to find one because that directory isn't there.

這應該可行:

include ':Libraries:Android-Bootstrap'

您的 dependencies 塊中需要相同的區(qū)分大小寫的規(guī)范:

You need the same case-sensitive spec in your dependencies block:

compile project (':Libraries:Android-Bootstrap')

這篇關于未找到名稱為“默認"的配置.安卓工作室的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 日韩一区二区三区视频在线观看 | 国产精品成人一区二区 | 超碰成人免费 | 亚洲乱码一区二区三区在线观看 | 欧美日韩一区二区电影 | 国产精品久久久久国产a级 欧美日本韩国一区二区 | 亚洲精品一区二区三区中文字幕 | 国产精品免费观看 | 97av视频在线观看 | 在线观看av网站永久 | 久久久不卡网国产精品一区 | 日日骑| 国产精品一区在线 | 一本一道久久a久久精品蜜桃 | 久久久久久99| 日本精品在线观看 | 在线观看成年人视频 | 在线成人福利 | 91精品国产91久久久久久丝袜 | 久久久性 | 亚洲区一区二区 | 国产精品国产精品 | 久久中文字幕电影 | 1级毛片| 亚洲逼院| 日韩在线不卡视频 | 精品欧美乱码久久久久久1区2区 | 色桃网| 欧美另类视频 | 国产免费一区二区三区免费视频 | 一级女毛片 | www狠狠爱com | 亚洲视频欧美视频 | 欧美精品一区二区三区在线播放 | 国产精品一区二区三区久久 | 一本在线| 本道综合精品 | 国产999精品久久久 午夜天堂精品久久久久 | 欧美一区二区三区在线视频 | 三级国产三级在线 | 欧美一区在线视频 |