我正在尝试使用Gradle构建我的第一个项目,我认为我的gradle文件和设置是正确的.
我只使用一个模块和支持V4 + AppCompatBar库.
项目 - build.gradle
allprojects {
repositories {
mavenCentral()
}
}
Run Code Online (Sandbox Code Playgroud)
项目 - settings.gradle
include ':AssignmentTempos21'
Run Code Online (Sandbox Code Playgroud)
主模块 - build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 8
targetSdkVersion 17
}
}
dependencies {
compile "com.android.support:support-v4:18.0.+"
compile "com.android.support:appcompat-v7:18.0.+"
}
Run Code Online (Sandbox Code Playgroud)
带-i标志的控制台输出:
MacBook-Air-de-Cesar-2:AssignmentTempos21 menor$ ./gradlew -i clean assemble
Starting Build
Settings evaluated using settings file '/Users/menor/workspace_android/AssignmentTempos21/settings.gradle'.
Projects loaded. Root …Run Code Online (Sandbox Code Playgroud) android android-appcompat gradle android-support-library build.gradle
我的gradle构建输出消息
Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
Run Code Online (Sandbox Code Playgroud)
这意味着什么以及如何使警告消失?
我已经升级到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)
我有什么关于它的吗?如果没有,我可以禁用它们吗?