资源编辑未能将材料库更新到1.1.0

问题描述 投票:0回答:2

我已经将我的资料库从com.google.android.material:material:1.0.0更新为com.google.android.material:material:1.1.0

更新后出现以下错误。我发现的唯一解决方案是将其还原为旧版本。另外,我尝试将每个依赖项都更新到最新版本,但也没有起作用。

/ home / name / .gradle / caches / transforms-2 / files-2.1 / 03d95e2ec81bf572bcb58974acba7470 / material-1.1.0-alpha06 / res / values / values.xml:718:5-725:23:AAPT:错误:资源“ attr / checkedButton”的重复值与配置''。

添加我的依赖项以供参考

 // Support libraries
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.1.0'

//Retrofit and ok http
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'

//Multidex
implementation 'androidx.multidex:multidex:2.0.1'

// Flex
implementation 'com.hopenlib.library:cflextools:1.0.0'
implementation 'com.google.android:flexbox:1.0.0'

// Testing
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
android androiddesignsupport material-components
2个回答
0
投票

如果您在androidx]中遇到AAPT问题,那么如果您的项目在androidx中,则可能在您的任何布局文件中都没有问题,那么您可以更新设计库。也请检查所有布局文件,任何资源文件和可绘制文件或字符串文件都可能丢失。

实现'com.google.android.material:material:1.0.0'


0
投票

如果您遇到AAPT问题,则问题可能出在您的任何XML文件中。或如果这不是问题,请尝试添加

© www.soinside.com 2019 - 2024. All rights reserved.