'##[error]Error: The process '/Library/Frameworks/Mono.framework/Versions/5_18_2/bin/msbuild' failed with exit code 1

I'm a bit of a newbie with Xamarin and I have an issue when building to app center, I hope someone can give me some pointers,

My app builds fine on iOS but it's coming up with this error for Android, could anyone please point me in the right direction?

[error]Error: The process '/Library/Frameworks/Mono.framework/Versions/5_18_2/bin/msbuild' failed with exit code 1


Solution 1:[1]

This error shows that there was an issue building your application in App Center. App Center builds your application just like you do when you build your application in Visual Studio.

Just above the red ##[error]Error: The process '/Library/Frameworks/Mono.framework/Versions/6_12_7/bin/msbuild' failed with exit code 1 it should show you more details on why your application failed to build.

This example shows what the output could look like. A summary of the errors and warnings and the specific error details shown above the summary.

In this case there were 2 errors. Some namespaces used in these two files could not be found.

enter image description here

So when there is an issue with your in App Center have a look at the error detail to find your issue ?

Solution 2:[2]

Go into the build settings -> on AppCenter-> and change the Mono version to the latest.

Solution 3:[3]

I faced the same issue. In case you are able to run a build your Xamarin Android project successfully from Visual Studio, your problem might be coming from the App Center build config. More specifically the SDK Version. To change the SDK version I invite you to do the following on your App Center Android project:

  1. Go to Build
  2. Select your build
  3. Go to build configuration (it's the wrench icon on the top right)
  4. then you'll have a drop-down to select the SDK version (I recommend you to select the latest stable one)

I hope it helped, don't hesitate to ask me questions in the comment if you are lost ?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Stephan Venter
Solution 2 VVS
Solution 3 Bryce Friha