xamarin / AndroidSupportComponents

Xamarin bindings for Android Support libraries - For AndroidX see https://github.com/xamarin/AndroidX
MIT License
146 stars 56 forks source link

Trying to use the ConstrainLayout Nuget package #28

Closed crehmann closed 7 years ago

crehmann commented 7 years ago

Xamarin.Android Version:

Xamarin.Android 7.0

Operating System & Version:

Windows 10

Support Libraries Version:

24.2.1

Describe your Issue:

I am trying to use the nuget package for the new ConstraintLayout (alpha9). I also downloaded the corresponding version from the Google SDK tools and copied them to ..\AppData\Local\Xamarin.Android.Support.Constraint.Layout\1.0.0-alpha9. However, the following errors are shown if I try to build the project:

No resource identifier found for attribute 'layout_constraintBottom_toBottomOf' in package 'ConstraintLayoutSample.ConstraintLayoutSample' ConstraintLayoutSample C:...\Main.xml 2
No resource identifier found for attribute 'layout_constraintLeft_toLeftOf' in package 'ConstraintLayoutSample.ConstraintLayoutSample' ConstraintLayoutSample C:...\Main.xml 2
No resource identifier found for attribute 'layout_constraintLeft_toLeftOf' in package 'ConstraintLayoutSample.ConstraintLayoutSample' ConstraintLayoutSample C:...\Main.xml 2
No resource identifier found for attribute 'layout_constraintRight_toRightOf' in package 'ConstraintLayoutSample.ConstraintLayoutSample' ConstraintLayoutSample C:...\Main.xml 2
No resource identifier found for attribute 'layout_constraintTop_toTopOf' in package 'ConstraintLayoutSample.ConstraintLayoutSample' ConstraintLayoutSample C:...\Main.xml 2

crehmann commented 7 years ago

I was finally able to build the project after setting the compile verstion, minimum target and target version to API level 24. Afterwards I could set the minimum version back to API level 19 and the project was still compiling