VSTS Build definition for Xamarin Android always fails with error " A supported task execution handler was not found. T..."

Jeeva

VSTS Build definition for Xamarin Android always fails with error " A supported task execution handler was not found. This error usually means the task does not carry an implementation that is compatible with your current operating system. Contact the task author for more details."

We are using on-premise agent and the version is 2.117.1

Demands are as shown in the build definition

  1. AndroidSDK
  2. JDK
  3. MSBuild
  4. Xamarin.Android
  5. msbuild
Jeeva

For anyone who is struggling to do the same thing. You can make use of the MSBuild command line utility provided by Microsoft to directly build it from the command line. On Mac it is called xbuild and in windows it is msbuild. But recently I have seen warning messages in the build logs that xbuild will be deprecated soon use msbuild instead. So I have used MSBuild command to build a xamarin.android project. Command is given below for reference

msbuild /t:Clean;Build;PackageForAndroid /p:Configuration=$(BuildConfiguration) /p:AndroidKeyStore=true /p:AndroidSigningKeyAlias=$(alias) /p:AndroidSigningKeyPass=$(KeyStorePassword) /p:AndroidSigningKeyStore=<Keystore> /p:AndroidSigningStorePass=$(KeyStorePassword) <CSProj file path>

I am still checking the keystore side of this command. If get more info then will add it here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

VSTS build number for build definition

Batch build fails with vsts

VSTS - Build Definition - Multiple Agents

Android build fails always when I build using Jenkins

Release Build of Xamarin Android App Fails, Debug Build Succeeds

Google Cloud: Build always fails, MANIFEST_UNKNOWN error

VSTS build and release error

Uno platform: Android build fails with ShellTask error

Xamarin build fails

Clone VSTS Build Definition in C#

How to specify folder for build definition in VSTS

JSON Transform Task in Build Definition in VSTS

Migrating a build definition from TFS to VSTS

Build definition for NETCore2 WebJob in VSTS

How to use $(Rev:r) in VSTS build definition?

Build issue in VSTS build agent on Mac (Xamarin)

Dotfuscator with Xamarin android fails build after Analyzing markup

Xamarin Andorid Build Always Fails ("java.exe" exited with code 2)

VSTS Build for Asp.Net Core solution fails with error MSB3554: Cannot write to the output file

Android BluetoothDevice connectGatt always fails with error 133 on certain devices

VSTS Build fails running NUnit tests

Pre build event fails after VSTS update

VSTS build fails when making a simple container

VSTS build fails but portal shows successful deployment

Build multiple projects/repositories with one build definition VSTS

How to build with --prod flag in VSTS build definition in azure

Sample Xamarin project fail build in VSTS

The NuGet Installer task used in TFS 2017 build definition fails to clear the global-packages folder with an error

npm run build fails with "Error: custom keyword definition is invalid: data.errors should be boolean"