enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
588 stars 100 forks source link

The type or namespace name 'Platforms' does not exist in the namespace 'Plugin.InputKit' #161

Closed kumarvikram closed 4 years ago

kumarvikram commented 4 years ago

I am getting build error at following line in MainActivity.cs after upgrading to ver 3.0.13. Ver 3.0.12 is working fine.

Xamarin.Essentials.Platform.Init(this, savedInstanceState);

It says

Error CS0234 The type or namespace name 'Platforms' does not exist in the namespace 'Plugin.InputKit' (are you missing an assembly reference?)

enisn commented 4 years ago

Are you targeting monoandroid81 ?

enisn commented 4 years ago

https://github.com/enisn/Xamarin.Forms.InputKit/releases/tag/v3.0.13 Monoandroid81 support is ended at v3.0.13 and can you try targeting to monoandroid90 or above?

kumarvikram commented 4 years ago

Changing the target framework of Android project to Android P resolved this issue.

Thanks a lot.