we are developing an business application using Xamarin Android.
We have used user assemblies (java binding library for Pull to Refresh component) and Newtonsoft.Json from Nuget Packages . These assemblies are referenced in our android project.
It is working fine with Debug mode, when we change to Release mode it shows the error as You need to add a reference to Mono.Android.Export.dll when you use ExportAttribute or ExportFieldAttribute..
we have referenced the Mono.Android.Export.dll but shows error in release mode alone.
I have done the following in Android Project Properties for Release build
Mono Android Options -> Configuration -> Release
Linking -> Sdk and User Assemblies
Bundle assemblies into native code enabled.
Kindly find the attached diagnostics build log file for your reference and help me to resolve the issue.
> in release by default x86 is removed, did you try to add x86 architecture to release build?
Yes. I have tried to set both armeabi-v7 and x86 architecture with sdk and user assemblies .
But it gives same error saying that error "XA4210: You need to add a reference to Mono.Android.Export.dll when you use ExportAttribute or ExportFieldAttribute "
If i build with sdk assemblies only then build successful in release mode.
But size of the application varies in release build for sdk assemblies only .