相关疑难解决方法(0)

未找到名称"default"的Android Studio Gradle配置

我在使用Android Studio(0.1.5)编译我的应用时遇到问题.该应用程序使用2个库,我包括如下:

settings.gradle

include ':myapp',':library',':android-ColorPickerPreference'
Run Code Online (Sandbox Code Playgroud)

的build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.4'
    }
}
apply plugin: 'android'

dependencies {
    compile files('libs/android-support-v4.jar')
    compile project(':library')
    compile project(':android-ColorPickerPreference')

}

android {
    compileSdkVersion 17
    buildToolsVersion "17.0.0"

    defaultConfig {
        minSdkVersion 7
        targetSdkVersion 16
    }
}
Run Code Online (Sandbox Code Playgroud)

编译时我收到此消息:

  Gradle: A problem occurred configuring project ':myapp'.
   > Failed to notify project evaluation listener.
   > Configuration with name 'default' not found.
Run Code Online (Sandbox Code Playgroud)

你能帮我这个消息吗?谢谢!

android gradle android-studio

181
推荐指数
11
解决办法
24万
查看次数

Android studio 0.5.9:2令人讨厌的Gradle警告

我已经升级到Android Studio 0.5.9并且总是收到这些警告:

Configuration on demand is an incubating feature.
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
Run Code Online (Sandbox Code Playgroud)

我有什么关于它的吗?如果没有,我可以禁用它们吗?

android gradle android-studio

12
推荐指数
1
解决办法
4600
查看次数

标签 统计

android ×2

android-studio ×2

gradle ×2