Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No agent could be found with the following capabilities Xamarin.Android

I'm trying to create a build definition to build and package an Android app based on Xamarin Forms.

I want to do so thanks to TFS 2017 Update 1 on premise. I've installed Visual Studio 2017 and Xamarin on my build server, and even after restarting my server, my agent does not find the Xamarin.Android capability.

I'm still getting en error while queuing one build : No agent could be found with the following capabilities AndroidSDK, MSBuild, Xamarin.Android, JDK

The only capability that is missing on my agent is the Xamarin.Android.

Do you have any idea on how to add it on my agent ?

Regards

like image 734
PatriceVB Avatar asked Oct 21 '25 05:10

PatriceVB


2 Answers

Add an environment variable named Xamarin.Android and the value of this would be

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin 

or change it wrt your Visual Studio version and installation path.

like image 142
Anurag Jain Avatar answered Oct 24 '25 12:10

Anurag Jain


Install Visual Studio 2017 on the build server and check Xamarin in the setup

Please check on the build server for an environment variable named Xamarain.Android and if it not exist add it or add an capability in TFS on the agent

like image 27
Neroon Avatar answered Oct 24 '25 11:10

Neroon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!