Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Android and Kotlin Library

I've working with Xamarin.Android , when i run project have exception Java.Lang.NoClassDefFoundError : Failed resolution of : Lkotlin/jvm/internal/Intrinsics;

Here is picture : enter image description here

How i can fix it ?

like image 660
EddyLee Avatar asked Dec 23 '22 22:12

EddyLee


1 Answers

This error could indicate that your Xamarin code uses a native Android library or code that is written in Kotlin

Because the Kotlin StdLib is not packaged with the library, you should add Xamarin.Kotlin.StdLib in your NuGet packages of your Xamarin project so the Xamarin App can correctly interpret the library or code written in Kotlin

like image 131
RWIL Avatar answered Dec 28 '22 06:12

RWIL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!