我尝试添加appcompat-v7库来修改搜索栏的提示颜色。但是,我无法使其发挥作用。任何的想法?这是我的gradle文件:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.0.1'
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'
repositories {
mavenCentral()
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-databind:2.2.+'
compile 'com.fasterxml.jackson.core:jackson-core:2.2.+'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.+'
compile 'commons-lang:commons-lang:2.6'
compile 'com.nhaarman.listviewanimations:library:2.5.2'
compile files('libs/TestFlightLib.jar')
compile 'com.android.support:support-v4:19.0.1'
compile 'com.android.support:appcompat-v7:19.0.1'
}
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
有关如何使其有效的任何想法?现在它是gradle-side工作..但它没有编译:
错误代码:139
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
:cisalpina:compileDebugNdk UP-TO-DATE
:cisalpina:preBuild UP-TO-DATE
:cisalpina:preDebugBuild UP-TO-DATE
:cisalpina:preReleaseBuild UP-TO-DATE
:cisalpina:prepareComAndroidSupportAppcompatV71901Library UP-TO-DATE
:cisalpina:prepareDebugDependencies
:cisalpina:compileDebugAidl UP-TO-DATE
:cisalpina:compileDebugRenderscript UP-TO-DATE
:cisalpina:generateDebugBuildConfig UP-TO-DATE
:cisalpina:mergeDebugAssets UP-TO-DATE
:cisalpina:mergeDebugResources
:cisalpina:processDebugManifest UP-TO-DATE
:cisalpina:processDebugResources FAILED
答案 0 :(得分:0)
问题是资源没有使用的样式。删除它将使一切正常。