如何解决我已经尽我所能,但无法摆脱这个错误错误:资源“属性/主题”的重复值与配置“”
这是依赖
implementation platform('com.google.firebase:firebase-bom:26.7.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'com.google.firebase:firebase-database:19.2.1'
implementation 'com.android.support:appcompat-v7:25.3.1'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
compile 'com.firebase:firebase-client-android:2.5.0'
compile fileTree(dir: 'libs',include: ['*.jar'])
compile 'com.google.android.gms:play-services:4.4.+'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
这是创建的自定义属性,我收到了错误 - 错误:资源“attr/theme”的重复值与配置 ''
<declare-styleable name="WalletFragmentOptions">
<!-- Theme to be used for the Wallet selector -->
<attr name="theme" format="enum">
<enum name="holo_dark" value="0"/>
<enum name="holo_light" value="1"/>
</attr>
<!-- Google Wallet environment to use -->
<attr name="environment" format="enum">
<enum name="production" value="1"/>
<enum name="sandbox" value="0"/>
<enum name="strict_sandbox" value="2"/>
</attr>
<!-- A style resource specifing attributes to customize the look and feel of WalletFragment -->
<attr name="fragmentStyle" format="reference"/>
<!-- Fragment mode -->
<attr name="fragmentMode" format="enum">
<enum name="buyButton" value="1"/>
<enum name="selectionDetails" value="2"/>
</attr>
</declare-styleable>
我已经尝试更改编译 sdk 版本和目标 sdk 版本,并在更改自定义属性中的值名称时进行了反复试验,但我仍然不断收到错误 - 错误:资源'attr 的重复值/theme' 带有配置 ''。我尝试了其他替代方案,但没有一个有效。请帮忙。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。