[Bug] debug single uitest causes unhandled exception #7207
Labels
a/uitest
p/Android
s/needs-info ❓
A question has been asked that requires an answer before work can continue on this issue.
s/unverified
New report that has yet to be verified
t/bug 🐛
Projects
Description
I am working on the issue 7167 and i created a view, vm, a test case and fixed the problem actually. now i added a uitest to my namespace and while debugging i get an unhanded exception.
I made sure that all the sdks are installed. i also added manully 2 envirment variables which point to "ANDROID_HOME". I also installed the lates nunit test adapter.,
This is the error msg:
`NUnit.Framework.InconclusiveException: 'App did not start for some reason: System.Exception: Android SDK not found. Please install it and if it is still not located, please set the ANDROID_HOME environment variable to point to the directory.
Searched locations:
Windows Registry
(No path) - Not set. [ Source: ANDROID_HOME ]
at Xamarin.UITest.Shared.Dependencies.AndroidSdkFinder.GetTools()
at Xamarin.UITest.Shared.Android.DefaultAndroidFactory.BuildExecutor(IProcessRunner processRunner)
at Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration, IExecutor executor)
at Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp(AppDataMode appDataMode)
at Xamarin.Forms.Controls.AppSetup.InitializeAndroidApp() in C:\optiq\Xamarin.Forms\Xamarin.Forms.Controls.Issues\Xamarin.Forms.Controls.Issues.Shared\TestPages\TestPages.cs:line 63
at Xamarin.Forms.Controls.AppSetup.InitializeApp() in C:\optiq\Xamarin.Forms\Xamarin.Forms.Controls.Issues\Xamarin.Forms.Controls.Issues.Shared\TestPages\TestPages.cs:line 40
at Xamarin.Forms.Controls.AppSetup.Setup(Type pageType) in C:\optiq\Xamarin.Forms\Xamarin.Forms.Controls.Issues\Xamarin.Forms.Controls.Issues.Shared\TestPages\TestPages.cs:line 220'
`
Steps to Reproduce
Basic Information
Screenshots
Reproduction Link
https://github.com/BrayanKhosravian/Xamarin.Forms
The text was updated successfully, but these errors were encountered: