RoleyBaxter
RoleyBaxter

Reputation: 313

Unable to create Java Library Binding with native .SO

I am creating a Java Library Binding project. The purpose is to create a simple application for RFID scanning, deployed on a Android-based RFID handheld scanner. I have native libraries. There is one.JAR and a few.SO files. I have created a Xamarin Java Binding project in VS2017 and put the .JAR in "Jars" folder. I have set the Build Action to EmbeddedJar. I have created a separate folder for native libs and in there put the .SO file with Build Action EmbeddedNativeLibrary. I get the following error on build:

The "CreateNativeLibraryArchive" task failed unexpectedly. System.IO.FileNotFoundException: Could not find file 'C:\src\RfidSDK\RfidSDK\obj\Debug__AndroidNativeLibraries__.zip.new'. File name: 'C:\src\RfidSDK\RfidSDK\obj\Debug__AndroidNativeLibraries__.zip.new' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) at Xamarin.Android.Tools.Files.CopyIfZipChanged(String source, String destination) at Xamarin.Android.Tools.Files.ArchiveZip(String target, Action`1 archiver) at Xamarin.Android.Tasks.CreateNativeLibraryArchive.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

I am not sure what the issue is...

Many Thanks for any help,

Tried switching the Target framework, no difference.

Upvotes: 1

Views: 416

Answers (1)

Juan Rojas
Juan Rojas

Reputation: 8861

Following the solution in @RoleyBaxter's comment:

enter image description here

Upvotes: 2

Related Questions