New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade 1.1.3 to 2.0.* fails. AAPT: error: duplicate value for resource #111
Comments
This is a constant problem in Android. All libraries need to be carful.
1.1.3 was release in August 2018 |
Material Design 1.2.x depends on ConstraintLayout 1.1.3 Because of changes in ConstraintLayout attrs during the 2.x migration, this means that using Material Design 1.2.x with ConstraintLayout 2.x is just not possible. |
Haven't tried with 1.3.0-* before, but that still doesn't work..
|
Have you tried contacting the material team ? |
I meet the same error with constraintlayout:2.1.0-alpha2 and material:1.2.0 |
@xuyisheng @mortenholmgaard what versions are you running of Android Studio & AGP? On 4.1.1 and 4.1.2 and the Arctic Fox canaries I'm not seeing the issue you describe with these versions:
|
I am running Android Studio 4.1.2 and AGP 4.1.2. I tried making a sample project for the case but saw that it worked then. So after some elimination of the other included libaries I figured out that the conflict was with this: miguelhincapie/CustomBottomSheetBehavior#85 |
have resolved it by renaming the attr name attr name="fontTest" format="integer" |
I am trying to upgrade from 1.1.3 to 2.0.* but keeps getting those errors. Have tried with multiple versions but only 1.1.3 seems to compile.
First/main error seems to be this:
It relates to this line in values.xml:
<declare-styleable name="StateSet"><attr format="reference" name="defaultState"/></declare-styleable>
Any one that could see what could cause this issue?
It could seem to be some kind of denpendency versions conflict, but still can't get why this would end up in something like this.
Edit:
I found out that the material dependency is part of the problem:
When ever I either upgrade that material to latest version or constraintlayout to 2.0.* it results in the above error, also if both are upgraded. Only with the versions above does it work. How could this be?
The text was updated successfully, but these errors were encountered: