gpt4 book ai didi

Android: 错误:(464) 属性 "dividerPadding"已经被定义

转载 作者:行者123 更新时间:2023-11-29 19:46:30 25 4
gpt4 key购买 nike

当我尝试调试我的应用程序时出现错误

错误:(464) 属性“dividerPadding”已被定义

build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.xxx.xx"
minSdkVersion 11
targetSdkVersion 22
useLibrary 'org.apache.http.legacy'
}

buildTypes {
release {
minifyEnabled true
proguardFiles 'proguard.cfg'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.code.gson:gson:2.2.2'
compile 'joda-time:joda-time:2.2'
compile files('libs/comscore.jar')
compile files('libs/FlurryAnalytics-5.3.0.jar')
compile files('libs/json-simple.jar')
compile 'com.lantouzi.wheelview:library:1.1.2'
compile project(path: ':pageStripLibrary')
}

我在添加“pageStripLibrary”后遇到了这个问题。当我尝试调试应用程序时

    <declare-styleable name="PagerSlidingTabStrip">
<attr format="color" name="indicatorColor"/>
<attr format="color" name="underlineColor"/>
<attr format="color" name="dividerColor"/>
<attr format="dimension" name="indicatorHeight"/>
<attr format="dimension" name="underlineHeight"/>
<attr format="dimension" name="dividerPadding"/>
<attr format="dimension" name="tabPaddingLeftRight"/>
<attr format="dimension" name="scrollOffset"/>
<attr format="reference" name="tabBackground"/>
<attr format="boolean" name="shouldExpand"/>
</declare-styleable>

这行代码是在value.xml下自动生成的build > intermediate>res>merged>debug>values>values.xml

最佳答案

请尝试从您的 attrs.xml 中删除或评论(该文件位于项目“pageStripLibrary”的 res/values/attrs.xml 中):

    <attr format="dimension" name="dividerPadding"/>

因为它已经由 support:appcompat 定义

关于Android: 错误:(464) 属性 "dividerPadding"已经被定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37543864/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com