Bug 15486 - Getting Error when user deploy application after selecting 'Bundle Assemblies into native code'.
Summary: Getting Error when user deploy application after selecting 'Bundle Assemblies...
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.10.0.x
Hardware: PC Windows
: High critical
Target Milestone: 4.10.0 (mtvs-1.6)
Assignee: Jonathan Pryor
Depends on:
Reported: 2013-10-18 11:46 UTC by Mohit Kheterpal
Modified: 2013-10-18 12:45 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mohit Kheterpal 2013-10-18 11:46:01 UTC
Steps to Reproduce :
1. Create Android Application
2. Select Release mode.
3. Select 'Bundle Assemblies into native code' in project properties under Mono Android options. 
4. Deploy application on device.

Actual Result : Getting Error "Could not create Android Package". And application is not deployed.

Expected Result : Application should deploy successfully after selecting 'Bundle Assemblies into native code'.

Screencast : http://screencast.com/t/of6LCLDa

Supplement info :
Build Log :https://gist.github.com/saurabh360/2777f459e07244bf3f6d
Build Order Log :https://gist.github.com/saurabh360/675ecc617d724642cae6
Debug Log : https://gist.github.com/saurabh360/b5f9a9f16fa7e141871a
Xamarin.Android Log :https://gist.github.com/saurabh360/c1693d7da0f93dc642dd

Environment info : 
VS 2012 / 2013
X.Android 4.10.00009
Comment 1 Jonathan Pryor 2013-10-18 11:56:47 UTC
For some reason your configuration is screwed up. From Build Log:

> 2>  Android NDK: \

I doubt that that '\' is the Android NDK directory.

> 2>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1243,3): error XA5101: Missing Android NDK toolchains directory '\toolchains'. Please install the Android NDK. [c:\users\administrator\documents\visual studio 2013\Projects\AndroidApplication16\AndroidApplication16\AndroidApplication16.csproj]

And the XA5101 confirms it: '\' is not a valid Android NDK installation location.

Thus the question: how did you get '\' set as your Android NDK directory? Is this an installation error? Or did you install the Android NDK separately/manually, and you need to update the Android NDK location?

You can update the Android NDK location within VS:

* Click Tools > Options...
* Within the left-hand tree view, select Xamarin > Android Settings
* WIthin the right-hand panel, se the Android NDK Location.
* Click OK.
Comment 2 Jonathan Pryor 2013-10-18 11:58:59 UTC
Related: it would be interesting to know if the Errors panel shows the XA5101 error or not. Unfortunately the screencast does not show the Errors panel.

Click View > Error List to view the Errors panel.
Comment 3 Mohit Kheterpal 2013-10-18 12:45:03 UTC
As per comment 1, After updating android ndk path we are able to deploy application on device with 'Bundle Assemblies into native code' option. 

Hence closing this issue. Thanks..