我是新用户,我在这里遇到问题。有没有可以帮助我解决它的方法? 我的消息 gradle 构建
Error:(2) Attribute "navigationMode" has already been defined
Error:(2) Attribute "displayOptions" has already been defined
Error:(2) Attribute "subtitle" has already been defined
Error:(2) Attribute "titleTextStyle" has already been defined
Error:(2) Attribute "subtitleTextStyle" has already been defined
Error:(2) Attribute "icon" has already been defined
Error:(2) Attribute "logo" has already been defined
Error:(2) Attribute "divider" has already been defined
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\MRX\AppData\Local\Android\Sdk\build-tools\19.1.0\aapt.exe'' finished with non-zero exit value 1
我的构建梯度
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "net.matrix_center.cloningapp"
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.0.0'
}
最佳答案
您可以通过在所有项目的库中使用相同版本的支持库来轻松解决此问题。
关于Android:错误属性已被定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32441976/