4

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 ?

3
  • It's Kotlin a JVM language? How would Xamarin operate with that? Commented Dec 13, 2016 at 5:55
  • This error means Kotlin runtime library is not referneced, please see this link. As far as I know, currently there is no official way to support kotlin in Xamarin.Android. Commented Dec 14, 2016 at 5:52
  • 1
    I believe that RWIL should be the accepted answer. Commented Jun 21, 2019 at 22:20

2 Answers 2

11

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

Sign up to request clarification or add additional context in comments.

Comments

0

Nowadays, there's no official way to use Kotlin - which is Java Virtual Machine(JVM) language - with C# programming language, I mean Xamarin projects. If you're looking similar solution try to use F# programming language which may be a pretty similar to Kotlin

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.