Skip to content

Can't find device/emulator on linux #8571

@baermathias

Description

@baermathias

Environment
✔ Component nativescript has 6.5.0 version and is up to date.
✔ Component tns-core-modules has 6.5.1 version and is up to date.
✔ Component tns-android has 6.5.0 version and is up to date.
✔ Component tns-ios has 6.5.0 version and is up to date.

  • Android Studio: 3.6.3
  • Runtime version: 1.8.0_212-release-1586-b4-5784211 amd64

Describe the bug
To install android virtual devices on linux I have follow this instruction https://docs.nativescript.org/tooling/android-virtual-devices

I have installed the cli tools, downloaded and created an AVD. So when I run ./avdmanager list I get a bunch of devices listed, e.g.

id: 1 or "android-28"
     Name: Android API 28
     Type: Platform
     API level: 28
     Revision: 6

Also I have installed Android Studio and can run a device on the emulator via android-studio -> avdmanager.
But when I run tns device or tns run android I get an error:

Searching for devices...
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.

What can be the issue here?

Expected behavior
Start the emulator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions