nativescript-dev-appium icon indicating copy to clipboard operation
nativescript-dev-appium copied to clipboard

NativeScript Appium Android Emulation tests fail when Visual Studio Community installed

Open bsmithb2 opened this issue 6 years ago • 3 comments

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project:

  • CLI: ~7.1.0
  • Cross-platform modules:
  • Android Runtime:28
  • iOS Runtime:
  • Plugin(s):Nativescript? Angular?

Describe the bug When you create a new demo project (I used the tabs one in Angular), then install appium tests and attempt to run them, you get a crash: TypeError: Cannot read property 'sdk' of undefined

To Reproduce Install Visual Studio Community Install the Android_Accelerated_Oreo avd image. It has a invalid format for target in the Android_Accelerated_Oreo.ini file. Install NativeScript Create Angular Tabs example project Install nativescript-dev-appium npm package to devDependencies Run tests with npm run e2e

Expected behavior Tests run

Sample project Raised an issue on https://github.com/NativeScript/mobile-devices-controller/issues/10 where the crash is raised

Additional context If you delete the AVD that Microsoft Visual Studio creates stuff goes back to normal.

bsmithb2 avatar Feb 09 '19 23:02 bsmithb2

Hey @bsmithb2, honestly, I haven't tested it with 'Visual Studio Community' but I will take a closer look and come back to you.

SvetoslavTsenov avatar Feb 15 '19 07:02 SvetoslavTsenov

@SvetoslavTsenov i am having same issue with nativescript CLI also.

Create Angular Tabs example project Install nativescript-dev-appium npm package to devDependencies Run tests with npm run e2e

bhavincb avatar Oct 24 '19 07:10 bhavincb

Make sure ANDROID_AVD_HOME is set to whatever. The TypeError: Cannot read property 'sdk' of undefined message is not clear enough.

setrar avatar Dec 05 '20 15:12 setrar