I'm learning NativeScript and
When running tns platform add android I receive the following error:
I follow this step:
- Run the command prompt as an Administrator.
- @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
- choco install googlechrome -y
- choco install nodejs-lts -y
- choco install jdk8 -y
- choco install android-sdk -y
- "%ANDROID_HOME%\tools\bin\sdkmanager" "platform-tools" "platforms;android-25" "build-tools;25.0.2" "extras;android;m2repository" "extras;google;m2repository"
- @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://nativescript.org/setup/win-avd'))"
- choco install androidstudio -y
- npm i -g nativescript
- tns doctor I see "No issues were detected" you are good to go!
- tns create HelloWorld --template nativescript-template-tutorial
- cd HelloWorld
- tns run android
Error: Cannot find connected devices. Emulator start failed with: Cannot resolve the specified connected device by the provided index or identifier. To list currently connected devices and verify th at the specified index or identifier exists, run 'tns device'. To list currently connected devices and verify that the specified identifier exi sts, run 'tns device'. To list available emulator images, run 'tns device --available-device s'.