You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NativeScript Appium Android Emulation tests fail when Visual Studio Community installed #198
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
Activity
SvetoslavTsenov commentedon Feb 15, 2019
Hey @bsmithb2, honestly, I haven't tested it with 'Visual Studio Community' but I will take a closer look and come back to you.
bhavincb commentedon Oct 24, 2019
@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
setrar commentedon Dec 5, 2020
Make sure
ANDROID_AVD_HOMEis set to whatever. TheTypeError: Cannot read property 'sdk' of undefinedmessage is not clear enough.