Reputation: 1781
We have teams which are working on different different technologies. Currently struggling with integration of android native module (Developed in android native language) with existing Xamarin android project.
Actually I got one way that we can convert android native project as a library. This library can integrate to Xamarin project. I had gone through below links
Convert existing project to library project in Android Studio
https://developer.xamarin.com/guides/android/advanced_topics/using_native_libraries/ ( Integration of android library in xamarin project)
Is this the correct way or do we have any alternate way to achieve it?
Upvotes: 1
Views: 989
Reputation: 9084
Is this the correct way or do we have any alternate way to achieve it?
The document Using Native Libraries is talking about how to use .so
file (native libraries) in Xamarin.Android
, here is the example.
It is recommended that using Binding Java Library. You could convert your android native project to a .jar
or .arr
file, then you could refer to Binding a .JAR or Binding an .AAR.
If there is any problem when you trying binding Java Library, you could refer to Troubleshooting Bindings.
Upvotes: 2