AlexZwh
AlexZwh

Reputation: 53

Android Studio can't connect to AVD or real device

My Android Studio version is 2.1.2 in Windows 10. there is no problem before, but today this occurred. And I can not debug my app.

How to solve ?

emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
emulator: WARNING: Setting VM heap size to 384MB

And

emulator: WARNING: ./android/metrics/metrics_reporter_toolbar.cpp:164: Can't upload usage metrics: Error

Run

Event Log

Upvotes: 0

Views: 4840

Answers (3)

Seenu69
Seenu69

Reputation: 1054

Connect only one device through usb, close all the running emulators. Now run the project. It would show the device to run. Later start emulator and run the app, this time the emulator also would be shown to run the app.

This happened to me also, I have resolved in the above said way.

Upvotes: 0

H.Azizkhani
H.Azizkhani

Reputation: 923

  1. go to tools-->android-->avd manager
  2. edit android virtual device and select show advanced settings
  3. go to memory and storage and set VM heap 400MB
  4. click finish and run avd

Upvotes: 1

Tomasz Czura
Tomasz Czura

Reputation: 2434

Do you see any errors? Try to

adb kill-server

Upvotes: 0

Related Questions