Forum Xamarin Test Cloud (Read Only)
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

VSTS Test project not building as SDK path not found

I am trying to use VSTS automation for building my project as well as executing it on testcloud. When it is trying to build the test project i am getting the below errors.

2017-08-22T10:07:25.5923735Z d:\a\1\s\FrontEnd\Mobile\packages\Xamarin.UITest.2.0.9\tools\test-cloud.exe submit "d:\a\1\b\Release\com.cmdin.projectnewbar2.apk" ef6dad0a65e32d82fb15f2fb890ad5f8 --user [email protected] --devices 556d891d --series "master" --locale "en_US" --assembly-dir "d:\a\1\b\Release\test-assembly" --nunit-xml "d:\a\1\b\Release\test-assembly\xamarintest_221.0.xml"
2017-08-22T10:07:25.9295668Z ##[error]Access to the path 'C:\Program Files (x86)\Android\android-sdk\cmake\3.6.4111459' is denied.
2017-08-22T10:07:25.9634443Z ##[error]System.Exception: Unexpected exit code 1 returned from tool test-cloud.exe

There is no option to specify android sdk path in uitest project options on VSTS.

Please help me.
Thanks in advance.


  • martinvdsmartinvds NLMember

    I'm having same exact error.... Only different version

    d:\a\1\s\packages\Xamarin.UITest.2.0.10\tools\test-cloud.exe submit "d:\a\1\b\Release\xxxxxxxxxxxxxxxxxx.apk" xxxxxxxxxxxxxxxxxxxxxxxxx --user [email protected] --devices 74766b94 --series "master" --locale "en_US" --assembly-dir "d:\a\1\s\xxxxxxxxxxxxxxxxxx\xxxxxxxxxxxxxxxxxx.UITests\bin\Release" 2017-08-22T11:11:15.7529504Z ##[error]Access to the path 'C:\Program Files (x86)\Android\android-sdk\cmake\3.6.4111459' is denied. 2017-08-22T11:11:15.7859494Z ##[error]System.Exception: Unexpected exit code 1 returned from tool test-cloud.exe 2017-08-22T11:11:15.7859494Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeToolCmdlet.ProcessRecord() 2017-08-22T11:11:15.7859494Z at System.Management.Automation.CommandProcessor.ProcessRecord() 2017-08-22T11:11:15.8089499Z ##[error]PowerShell script completed with 1 errors. 2017-08-22T11:11:15.8099509Z ##[section]Finishing: Test $(build.binariesdirectory)/Release/*.apk with Xamarin.UITest in Xamarin Test Cloud

    The weird thing upload locally with same command works perfectly so probably it's something in VSTS ?

  • KeithMangoldKeithMangold USMember

    I too am having the same issue:

    Submit d:\a\1\b\Release\ZZZZZZZ.apk to Xamarin Test Cloud.
    d:\a\1\s\packages\Xamarin.UITest.1.3.8\tools\test-cloud.exe submit "d:\a\1\b\Release\ZZZZZZZ..apk" 56455d242d3cef1b7e316355e6cf7188  --user [email protected] --devices de9f121e --series "master" --locale "en_US" --assembly-dir "d:\a\1\b\Release\test-assembly" --nunit-xml "d:\a\1\b\Release\test-assembly\xamarintest_15.0.xml"
    Access to the path 'C:\Program Files (x86)\Android\android-sdk\cmake\3.6.4111459' is denied.
    System.Exception: Unexpected exit code 1 returned from tool test-cloud.exe
  • Im having the same problem. Does anyone have a fix for this

  • JeremyCraigJeremyCraig USMember

    I'm also experiencing this when trying to use both Xamarin Test Cloud & Mobile Center Test through VSTS

  • GlennWester.4818GlennWester.4818 USXamarin Team Xamurai

    Thanks for reporting! We are looking into this now and will have a resolution shortly. I will update this thread when I have an update, apologies for the disruption.

  • SimonFosterSimonFoster GBMember

    Any update on this I am getting the same error?

    2017-08-28T20:12:50.1325186Z Access to the path 'C:\Program Files (x86)\Android\android-sdk\cmake\3.6.4111459' is denied.
    2017-08-28T20:12:50.1375398Z Preparing tests... failed.
    2017-08-28T20:12:50.1385189Z Command failed: Cannot prepare UI Test artifacts. Returning exit code 1.

  • SangamTeamSangamTeam USMember

    @GlennWester.4818 any updated ETA on this?

  • MichaelWankeMichaelWanke USMember

    We are experiencing this as well. Any update would be appreciated!

  • GlennWester.4818GlennWester.4818 USXamarin Team Xamurai

    Hi @MichaelWanke and @SangamTeam this fix should be available by mid week, I will check with the team again and update here shortly. Thank you for your patience.

  • MichaelWankeMichaelWanke USMember

    @GlennWester.4818 Thank you for the update!

  • GlennWester.4818GlennWester.4818 USXamarin Team Xamurai

    @MichaelWanke We're expecting this by tomorrow afternoon.

  • GlennWester.4818GlennWester.4818 USXamarin Team Xamurai

    I've heard from the team that the fix is now live. Please rerun your builds and ensure the upload is successful, please let me know otherwise!

Sign In or Register to comment.