6

I am developing an android app with Xamarin. I tested in successfully through emulator and in test cloud manually but when I am trying to run it through VSTS, I am getting:

Mono Shared Runtime is not supported. This can be resolved by changing the project configuration or using a Release build.

I checked my android project file, shared mono runtime is turned off.

Can anyone tell me what could cause this issue and how to resolve it?

user1623521
  • 340
  • 1
  • 16
TheDeveloper
  • 1,127
  • 1
  • 18
  • 55
  • 1
    looks like you found a bug, StackOverflow is not a bug tracking system, please file the bug in http://bugzilla.xamarin.com/ attaching a self-contained minimal testcase – knocte Jun 11 '16 at 06:39
  • "I checked my android project file, shared mono runtime is turned off." that's an invalid statement. A project file can contain multiple profiles (debug/release and many more). Based on the error message you are running probably the debug profile. You should revise your VSTS configuration to switch to release profile if possible. – Lex Li Jun 12 '16 at 07:27
  • Well, what i meant was, the release mode of my android project has mono shared runtime turned off and just to be clear I also turned off mono runtime on debug mode as well to see if I am running on debug mode. But still no result.. Can you think of any possibilities which mightbe causing the issue ? – TheDeveloper Jun 13 '16 at 13:30

3 Answers3

4

Right click to your Android Project -> Properties

enter image description here

Disable the option "Use Shared Runtime"

enter image description here

Led Machine
  • 7,122
  • 3
  • 47
  • 49
1

I got it.

AOT tag in my android solution was set to true. I had to disable it and run it on VSTS.

TheDeveloper
  • 1,127
  • 1
  • 18
  • 55
0

After removing Shared Runtime and Fast Deployment from Android Options, I had to restart Visual Studio and switch again on Release configuration for the settings to take effect.

profimedica
  • 2,716
  • 31
  • 41