xamarin / AndroidSupportComponents

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

Unable to resolve interface type 'Android.Support.Design.Widget.BottomNavigationView/IOnNavigationItemSelectedListener' #149

Closed pldeschamps closed 5 years ago

pldeschamps commented 5 years ago

Xamarin.Android Version (eg: 6.0): 9.1.4.2

Operating System & Version (eg: Mac OSX 10.11): Windows 10 Pro 1803

Support Libraries Version (eg: 23.3.0):

Xamarin.Android.support.Design v28.0.0.1 Xamarin.Forms v3.4.0.1029999

Describe your Issue:

Hello, I cannot compile since I updated my nuget packages to: Xamarin.Android.support.Design v28.0.0.1 Xamarin.Forms v3.4.0.1029999

I got the follonwing errors: Unable to resolve interface type 'Android.Support.Design.Widget.BottomNavigationView/IOnNavigationItemSelectedListener'. Are you missing an assembly reference?

and now this one: No resource identifier found for attribute 'alpha' in package 'Almicantarat.Droid' \obj\Debug\90\lp\11\jl\res\color\design_tint_password_toggle.xml 20

I was targetting Android 8.1 I am now targetting Android 9.0

My jdk is jdk1.8.0_152

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

Attached build output targeting Android 8.0 buildoutput8_0.txt

pldeschamps commented 5 years ago

Solved: Targeting 8.1 I edited the Android project file .csproj I removed the <Import Project="....\packages\Xamarin.Android.Support.Design.28.0.0.1\build\MonoAndroid80\Xamarin.Android.Support.Design.targets" Condition="Exists('....\packages\Xamarin.Android.Support.Design.28.0.0.1\build\MonoAndroid80\Xamarin.Android.Support.Design.targets')" /> I had added previously I changed all the monoandroid80\, monoandroid60\ by monoandroid81\ in the References.