Sivagnanam Subramani
Sivagnanam Subramani

Reputation: 45

Xamarin Native Binding - Kotlin constructor

I am have added Native Binding for Android in Xamarin. But, Class constructor is added with one more new parameter "DefaultConstructorMarker _constructor_marker".

I have no clue to create this parameter.

Upvotes: 0

Views: 141

Answers (1)

Liyun Zhang - MSFT
Liyun Zhang - MSFT

Reputation: 14204

Did you use the Xamarin.Kotlin.StdLib package when you created the kotlin binding library?

There was a existed similar issue on the github, according to the link, the problem has been fixed in Xamarin.Android SDK version and Visual Studio 2019 version 16.8 Preview 3, so you can try to update the xamarin.android verison in your project by upgrading the visual studio.

For more information, you can check the official document about binding a kotlin library and the issue I mentioned above.

Upvotes: 0

Related Questions