Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Bundle into native code always crashes mkbundle.exe - Android Release build

$
0
0

Hello

I have created quite a big Xamarin.Forms project (solution has 26 projects - 13 shared Xamarin.Forms PCLs + 13 Droid-specific). I was never able to succesfully build my app using Bundle into native code option. It is crucial for me because I want to protect my code as much as possible. Each time I tick 'Bundle into native code' option, the Archive process crashes - I always got the windows mkbundle.exe crash message and

========== Build: 26 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== Conversion from assembly to native code failed. Exit code -532462766

error in Visual Studio. I have also checked Xamarin logs and I found out mkbundle.exe exception stack trace:

Conversion from assembly to native code failed. Exit code -532462766 Done building project "MyProject.Droid.csproj" -- FAILED.

at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.RunMSBuildTarget(Project project, IProgressReport progress, String msbuildTarget, MsBuildLogger msbuildLogger, IDictionary2 properties, IDictionary2 globalProperties, Boolean runInProc) in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 177 at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.RunMSBuildTarget(Project project, IProgressReport progress, String msbuildTarget, IDictionary2 properties, IDictionary2 globalProperties, Boolean runInProc) in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 133 at Xamarin.VisualStudio.Android.Services.AndroidToolsBuildService.Package(Project project, IProgressReport progress) in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Android\Services\AndroidToolsBuildService.cs:line 93 at Xamarin.VisualStudio.Android.Services.Publishing.ArchivePackagingTask.Execute(IArchiveProcessParameters parameters, IProgressReport progress) in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Android\Services\Publishing\Archival\ArchivePackagingTask.cs:line 34 at Xamarin.VisualStudio.Android.Publishing.AndroidArchiveToolsService.ArchiveAsync(IProjectNode project, IProgressReport progress, CancellationToken cancellationToken) in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Android\Services\Publishing\Archival\AndroidArchiveToolsService.cs:line 90 at Xamarin.VisualStudio.Publishing.ArchivableProjectBase.<ArchiveAsync>d__8.MoveNext() in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Publishing\Archival\ArchivableProjectBase.cs:line 30 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Xamarin.VisualStudio.Publishing.ArchiveManager.<ArchiveAsync>d__12.MoveNext() in C:\d\lanes\4699\fec6f88f\source\xamarinvs\src\Core\VisualStudio.Publishing\Archival\ArchiveManager.cs:line 172

Some info about my project:

  • Android release build, armeabi-v7 and x86 ABIs only selected, only Bundle into native code option ticked,
  • no Google Play Services used
  • single resx file in main Xamarin.Forms PCL project
  • all projects references Xamarin.Forms 2.3.4.231
  • all Droid projects targets API 25 Nougat 7.1
  • all Droid projects depends on exact same versions of Android Support Libraries

What can I do in order to make this work? Any suggestions? Any help would be highly appreciated :).


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>