linux - Unable to start android emulator with ERROR: There's another emulator instance running with the current AVD -


using cli , running emulator following command:

./emulator -use-system-libs @nexus5api25 

displays error , emulator not start.

emulator: error: there's emulator instance running current avd 'nexus5api25'. exiting... 

and:

  • there isn't running emulator instance.
  • nexus5api25 exist , working in past.
  • i have use -use-system-libs flag on machine start emulator instance.
  • other avd working.

when executed -verbose there more details printed don't see me solve problem:

emulator:android emulator version 26.1.3.0 (build_id 4205252) (cl:e55642d861e04276b2fa453bfaff4a836f3a3269) emulator:found avd name 'nexus5api25' emulator:found avd target architecture: x86_64 emulator:argv[0]: './emulator'; program directory: '/home/developer/opt/android/sdk/emulator' emulator:  found directory: /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64/  emulator:probing /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64//kernel-ranchu: file exists emulator:auto-config: -engine qemu2 (based on configuration) emulator:  found directory: /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64/  emulator:try dir /home/developer/opt/android/sdk/emulator emulator:found target-specific 64-bit emulator binary: /home/developer/opt/android/sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64 emulator:adding library search path: '/home/developer/opt/android/sdk/emulator/lib64' emulator:adding library search path: '/home/developer/opt/android/sdk/emulator/lib64/gles_swiftshader' emulator:adding library search path: '/home/developer/opt/android/sdk/emulator/lib64/gles_angle' emulator:adding library search path: '/home/developer/opt/android/sdk/emulator/lib64/gles_angle9' emulator:adding library search path: '/home/developer/opt/android/sdk/emulator/lib64/gles_angle11' emulator: adding library search path qt: '/home/developer/opt/android/sdk/emulator/lib64/qt/lib' emulator: setting qt plugin search path: qt_qpa_platform_plugin_path=/home/developer/opt/android/sdk/emulator/lib64/qt/plugins emulator: running :/home/developer/opt/android/sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64 emulator: qemu backend: argv[00] = "/home/developer/opt/android/sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64" emulator: qemu backend: argv[01] = "-verbose" emulator: qemu backend: argv[02] = "-use-system-libs" emulator: qemu backend: argv[03] = "@nexus5api25" emulator: concatenated backend parameters:  /home/developer/opt/android/sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64 -verbose -use-system-libs @nexus5api25 emulator: android virtual device file at: /home/developer/.android/avd/nexus5api25.ini emulator: virtual device content @ /home/developer/.android/avd/nexus_5_api_25.avd emulator: virtual device config file: /home/developer/.android/avd/nexus_5_api_25.avd/config.ini emulator: using core hw config path: /home/developer/.android/avd/nexus_5_api_25.avd/hardware-qemu.ini emulator: found avd target api level: 25 emulator: read property file @ /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64//build.prop emulator: no boot.prop property file found. emulator: found skin 'nexus_5' in directory: /home/developer/opt/android/sdk/skins/ emulator: autoconfig: -skin nexus_5 emulator: autoconfig: -skindir /home/developer/opt/android/sdk/skins/ emulator: autoconfig: -kernel /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64//kernel-ranchu emulator: target arch = 'x86_64' emulator: auto-detect: kernel image requires new device naming scheme. emulator: auto-detect: kernel not support yaffs2 partitions. emulator: autoconfig: -ramdisk /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64//ramdisk.img emulator: using initial system image: /home/developer/opt/android/sdk/system-images/android-25/google_apis/x86_64//system.img emulator: no vendor image emulator: autoconfig: -data /home/developer/.android/avd/nexus_5_api_25.avd/userdata-qemu.img emulator: autoconfig: -initdata /home/developer/.android/avd/nexus_5_api_25.avd/userdata.img emulator: autoconfig: -cache /home/developer/.android/avd/nexus_5_api_25.avd/cache.img emulator: autoconfig: -sdcard /home/developer/.android/avd/nexus_5_api_25.avd/sdcard.img emulator: physical ram size: 1536mb  emulator: vm heap size 128mb below hardware specified minimum of 384mb,setting value emulator: system image read emulator: found 1 dns servers: 127.0.0.53 emulator: error: there's emulator instance running current avd 'nexus5api25'. exiting... 

i know can delete avd , create new one. there way fix problem existing avd without recreating it?

i managed fix problem removing lock file.

the lock file located in avd directory ( in case /home/developer/.android/avd/nexus_5_api_25.avd visible in verbose output posted in qustion) , named hardware-qemu.ini.lock.

emulator have been running without problems once removed file.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -