error APT1000: Attribute "imageAspectRatioAdjust" already defined with incompatible format.

Александр Р 116 Reputation points
2020-11-23T12:18:53.837+00:00

the following error comes out after changing the target platform from Android 8 to Android 9, 10 or 11. + updating dependencies + migration to AndroidX:
\ obj \ Debug \ 110 \ lp \ 64 \ jl \ res \ values ​​\ values.xml (4): error APT1000: Found tag id where item is expected
\ obj \ Debug \ 110 \ lp \ 48 \ jl \ res \ values ​​\ values.xml (35): error APT1000: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
\ obj \ Debug \ 110 \ lp \ 90 \ jl \ res \ values ​​\ values.xml (36): error APT1000: Original attribute defined here.
\ obj \ Debug \ 110 \ lp \ 48 \ jl \ res \ values ​​\ values.xml (48): error APT1000: Attribute "buttonSize" already defined with incompatible format.
\ obj \ Debug \ 110 \ lp \ 90 \ jl \ res \ values ​​\ values.xml (49): error APT1000: Original attribute defined here.
\ obj \ Debug \ 110 \ lp \ 48 \ jl \ res \ values ​​\ values.xml (56): error APT1000: Attribute "colorScheme" already defined with incompatible format.
\ obj \ Debug \ 110 \ lp \ 90 \ jl \ res \ values ​​\ values.xml (57): error APT1000: Original attribute defined here.

What I did: Delete the Bin and Obj folders, clean up the solution, do a package management format migration. Changed DEX compilers.

What is the cause of this error? what to do to fix it? How to understand why it comes out?

Debug configuration does not have this error, but Release the error appears

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
{count} vote

0 additional answers

Sort by: Most helpful