Android E感谢读者——问题也可能来自GIT和不区分大小写的文件系统(就像大多数Mac电脑一样)。如果你只更改了一个文件夹的大小写而不更改其他内容,那么当你提交它时,它就会崩溃。更改不会传播到您的同事或生成服务器。其他可能的原因:导入模块时,请特别选择根项目的“se

Android E感谢读者——问题也可能来自GIT和不区分大小写的文件系统(就像大多数Mac电脑一样)。如果你只更改了一个文件夹的大小写而不更改其他内容,那么当你提交它时,它就会崩溃。更改不会传播到您的同事或生成服务器。其他可能的原因:导入模块时,请特别选择根项目的“se,android,gradle,android-studio,android-gradle-plugin,Android,Gradle,Android Studio,Android Gradle Plugin,E感谢读者——问题也可能来自GIT和不区分大小写的文件系统(就像大多数Mac电脑一样)。如果你只更改了一个文件夹的大小写而不更改其他内容,那么当你提交它时,它就会崩溃。更改不会传播到您的同事或生成服务器。其他可能的原因:导入模块时,请特别选择根项目的“settings.gradle”,而不是根项目文件夹。在我的例子中,Android Studio很困惑,因为它发现了多个settings.gradle文件(作为子模块的结果)。选择settings.gradle作为导入目标后,一切正常。另请参阅可能


E感谢读者——问题也可能来自GIT和不区分大小写的文件系统(就像大多数Mac电脑一样)。如果你只更改了一个文件夹的大小写而不更改其他内容,那么当你提交它时,它就会崩溃。更改不会传播到您的同事或生成服务器。其他可能的原因:导入模块时,请特别选择根项目的“settings.gradle”,而不是根项目文件夹。在我的例子中,Android Studio很困惑,因为它发现了多个settings.gradle文件(作为子模块的结果)。选择settings.gradle作为导入目标后,一切正常。另请参阅可能的副本。当父项目转换为库项目时,必须为子项目执行此操作。什么?这与问题没有任何关系。为我工作:),我添加了volley作为一个模块,但没有包含在git中,所以当我再次克隆项目时,它给了我这个错误,因为volley文件夹不在那里,非常感谢,我也遇到了同样的问题。我删除了一个NPM包并得到了这个错误。我删除了
settings.gradle
build.gradle
以及
src/main/java/[your appname]/main application.java
中的引用。要清理,您可以使用安卓光盘&&./gradlew clean这也解决了我的问题。问题是我的
package.json
中列出了未安装的依赖项。
-FTPBackup
   -fotobackup
     -build.gradle
   -Libraries
     -Android-Bootstrap
       -Settings.gradle
       -build.gradle
-Settings.gradle
-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()
    }
}
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')
}
include ':libraries:Android-Bootstrap',':Android-Bootstrap'
include ':Libraries:Android-Bootstrap'
compile project (':Libraries:Android-Bootstrap')
compile fileTree(dir: 'libraries', include: ['Android-Bootstrap'])
compile project (':libraries:Android-Bootstrap')
 include ':app', ':k3b-geohelper'
  Cannot evaluate module k3b-geohelper : Configuration with name 'default' not found
* What went wrong:
Could not determine the dependencies of task ':test'.
Could not resolve all task dependencies for configuration ':testRuntimeClasspath'.
Could not resolve project :lib-blah.
 Required by:
     project :
  > Unable to find a matching configuration of project :lib-blah: None of the consumable configurations have attributes.