Bug 20355 - XA windows installer should no longer install Mono.Android.Platform.apk
Summary: XA windows installer should no longer install Mono.Android.Platform.apk
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Installer ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: 4.0.0 (C6)
Assignee: vsx
URL:
Depends on: 28338
Blocks:
  Show dependency tree
 
Reported: 2014-06-04 16:34 UTC by Peter Collins
Modified: 2015-06-04 10:38 UTC (History)
6 users (show)

Tags:
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 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:
Status:
RESOLVED FIXED

Description Peter Collins 2014-06-04 16:34:25 UTC
As part of the efforts towards reducing the XA installer size, we no longer install Mono.Android.Platform.apk into the various platform directories. This work is already complete on mac OSX in monodroid-4.14-series, but XamarinVS master is still installing these Mono.Android.Platform.apk files. Jonp believes we will need to update the windows installer to ensure we no longer package these files into the installer.

Expected:
C:\Program Files (x86)\MSBuild\Xamarin\Android\platforms\*\Mono.Android.Platform.apk should not exist.

Environment:
Win 7x64
xamarinvs-windows-master/c376d19d
http://storage.bos.xamarin.com/xamarinvs-windows-master/c3/c376d19d2984310ff50a6e741e3e3e9ce4f920a5/Xamarin.VisualStudio_Setup-3.1.159.0_signed.msi
Comment 1 Peter Collins 2014-06-05 15:29:58 UTC
The timeline for this bug has changed and the installer should not be updated until the release _after_ 3.1
Comment 2 Jonathan Pryor 2014-06-05 17:32:40 UTC
As part of this fix, the Windows installer should also remove duplicate assemblies, a'la:

https://github.com/xamarin/monodroid/commit/8de37f310133bb38802842f5f86f904cab7327a3

For example, in 4.12.4, both of the following assemblies exist:

%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.6\OpenTK.dll
%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.1\OpenTK.dll

Only the former is required, so you should be able to remove all the other copies of OpenTK.dll from the installer.

You will also need to update FrameworkList.xml to allow this this to work, by having the /FileList/@IncludeFramework attribute specify the previous framework. bundle.zip already contains these files with the appropriate contents, so you should be able to just copy them if you're not already doing so.

Furthermore, please ensure that Visual Studio works with this setup, e.g. Xamarin Studio does not (Bug #20402).
Comment 5 Peter Collins 2015-03-23 13:59:53 UTC
Moving to the Cycle 6 milestone.
Comment 6 Joaquin Jares 2015-06-04 09:03:01 UTC
Fixed XVS complaining about aapt not found when apk is missing in caches via:
https://github.com/xamarin/XamarinVS/commit/b371adb920f3e6d9bf695cd494a3aafc922cd4c2

Fix is in master, so targeted for Cycle 6. XVS is now working perfectly with this setup (#c2)
Comment 7 Peter Collins 2015-06-04 10:38:21 UTC
Marking as fixed as per Comment 6