Bug 2720 - FastDev issue in MD addin
Summary: FastDev issue in MD addin
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-03 08:53 UTC by Rodrigo Kumpera
Modified: 2016-08-03 15:37 UTC (History)
3 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 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:
Status:
RESOLVED INVALID

Description Rodrigo Kumpera 2012-01-03 08:53:04 UTC
The project on case #5618 builds into a broken APK with no assemblies on it.

You have first to replay "copy /Y" with cp -f, once that, things will run but fail to produce something usable.
Comment 1 Jonathan Pobst 2012-01-03 10:28:13 UTC
I am guessing this is because FastDev is on, which is the default.

Under FastDev, assemblies are not placed in the APK, so APK's are "broken" if you try to run them without an IDE.  When run from an IDE, the APK is first copied over, and then all the needed assemblies are copied over.
Comment 2 Rodrigo Kumpera 2012-01-03 11:25:14 UTC
Here's the problem.

When xbuild is creating the APK it thinks FastDev is enabled, so it leaves assemblies out.

But MD and/or the deployment task, thinks FastDev is off, so no assembly upload happens and we end up with a broken install.
Comment 3 Jonathan Pobst 2012-01-03 11:43:39 UTC
Just to clarify, this is all from within the MD addin.

The project is building without the assemblies from within MD, but MD is not deploying the additional assemblies needed when copying the project to the device.
Comment 4 Mikayla Hutchinson [MSFT] 2012-01-03 12:01:02 UTC
What version of MD?
Comment 5 Rodrigo Kumpera 2012-01-03 12:45:49 UTC
I'm using:

OSX Lion.
MD 2.8.5
MfA Addin 3.9.9.1 - it doesn't show any update even if I enable alpha/beta channels.
MfA 4.0.1
Comment 6 Mikayla Hutchinson [MSFT] 2012-01-03 13:33:18 UTC
Uninstall the 3.9.9.1 addin, you should be using the one included with MD which has a lower version (3.9.9.1 was only used for internal testing and was an experimental versioning scheme that we decided against).
Comment 7 Rodrigo Kumpera 2012-01-03 16:02:12 UTC
The issue boiled that I had a mandroid reporting 2.0.0 when in fact it was a 4.0.1 install.

It would be super nice if md-addins refused to work on versions it doesn't support.