Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Installation failed due to: 'device 'xxxxxxxx' not found'

I'm struggling with an issue connecting Android Studio to my Google Pixel 2.

When I plug my phone into my laptop, Android Studio now recognizes the physical device and shows 'Google Pixel 2' in the dropdown of devices to run the app on. When I go to run the app, it compiles without error but when it tries to install the app on my phone the connection between my phone and AS is lost (the device is no longer listed in the dropdown) and this error message is shown in the Run dialog:

06/12 17:08:35: Launching 'app' on Google Pixel 2.
Installation did not succeed.
The application could not be installed.

List of apks:
[0] '/home/kirk/Apps/xxxx/android/app/build/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'device 'xxxxxxxx' not found'
Retry

Clicking the Retry link just results in it being launched in an emulator.

I've tried disconnecting and reconnecting the device, revoking the USB debugging authorisations then re-trusting my computer, as well as closing and re-opening Android Studio.

Any ideas?

like image 437
saricden Avatar asked Jun 13 '20 00:06

saricden


1 Answers

Sometimes ADB just need a restart.

adb kill-server

adb start-server

like image 88
tony508 Avatar answered Sep 24 '22 08:09

tony508