与摇篮建设的时候就已经定义的错误摇篮、定义、错误、时候

2023-09-04 07:20:19 作者:余生太长 你太难忘

我进口旧项目从蚂蚁摇篮。我包括所有图书馆和tride构建,但我有问题:

  E:\gradle\DriverClient\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\7.8.0\res\values\wallet_colors.xml
    错误:(2)属性titleTextStyle已经被定义
    错误:(2)属性subtitleTextStyle已经被定义
    错误:(2)属性除法已经被定义
    错误:(2)属性背景已经被定义
    错误:(2)属性backgroundSplit已经被定义
    错误:(2)属性navigationMode已经被定义
    错误:(2)属性displayOptions已经被定义
  .............................
 

我不明白什么是错的。这里是我的摇篮依赖 -

 相关性{
    编译文件树(导演:库,包括:['的* .jar'])
    编译com.android.support:appcompat-v7:23.0.0
    编译com.actionbarsherlock:actionbarsherlock:4.4.0@aar
    编译com.larswerkman:HoloColorPicker:1.5
    编译com.google.android.gms:播放服务:7.8.0
    编译org.jsoup:jsoup:1.8.3
    编译com.nostra13.universalimageloader:通用图像装载机:1.9.4
}
 

解决方案

您不可以使用appcompat库和ActionBarSherlock在一起,因为他们使用的是相同的ATTRS。

我建议您使用appcompat库由于ABS 是德precated 大约两年前,没有更新进出mantenaince的。

QC七大手法,有图有案例,太实用了

I imported an old project from ANT to Gradle. I included all libraries and tride build but i have problem:

 E:\gradle\DriverClient\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\7.8.0\res\values\wallet_colors.xml
    Error:(2) Attribute "titleTextStyle" has already been defined
    Error:(2) Attribute "subtitleTextStyle" has already been defined
    Error:(2) Attribute "divider" has already been defined
    Error:(2) Attribute "background" has already been defined
    Error:(2) Attribute "backgroundSplit" has already been defined
    Error:(2) Attribute "navigationMode" has already been defined
    Error:(2) Attribute "displayOptions" has already been defined
  .............................

I do not understand what is wrong. Here are my Gradle dependencies -

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
    compile 'com.larswerkman:HoloColorPicker:1.5'
    compile 'com.google.android.gms:play-services:7.8.0'
    compile 'org.jsoup:jsoup:1.8.3'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
}

解决方案

You can't use appcompat library and ActionBarSherlock together because they are using the same attrs.

I suggest you using the appcompat library since abs was deprecated about two years ago,not updated and out of mantenaince.