The type name 'Widget' does not exist in the the type 'Android' - in multitarget library?

LeloLelo Member ✭✭✭
edited August 16 in Xamarin.Forms

I am unable to build my multitarget library due to some problem with android. For some reason I get UIKit complaints due to some problem with android:

We all now UIKit is part iOS. NativeObject is the project name.


However I have included MonoAndroid90 as a target platform in the .csproj file. And when trying to to use something in the android namespace:

... there is some problem with Android indeed.

In the Android SDK Manager I have installed everything in Android 9.0 api 28. What could be the problem?


My csproj is near identical to: https://montemagno.com/converting-xamarin-libraries-to-sdk-style-multi-targeted-projects/

Best Answer

Answers

Sign In or Register to comment.