B Morris
B Morris

Reputation: 41

Installation failed with message device '(device number)' not found

I am following the simple guide from https://developer.android.com/training/basics/firstapp/running-app.html and it seems pretty silly that I am on pretty much the first step (running the app on my Google Pixel) and I keep getting error messages similar to this one:

"Installation failed with message device 'FA68J0300060' not found. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?"

I have tried looking to see if there was an existing version but it does not appear so, and any troubleshooting I have done already has proven ineffective.

Upvotes: 4

Views: 4745

Answers (2)

Shahriar Zaman
Shahriar Zaman

Reputation: 938

Problem: One of my projects was compiling but not installing. All other projects was fine.

Solution: I copied the device number from the failed message (it was something like 0B051FDD4000US) and searched inside the project files. It was found in two files under the ./idea directory. First I tried to delete those two files, but didn't work.

Finally I found the solution deleting the ./idea folder alltogether and relaunching Android Studio.

Upvotes: 0

kakyo
kakyo

Reputation: 11640

Bear in mind that Android and its toolchain, including Android Studio, are a fast-evolving ecosystem (a mess if being cynical). No one can guarantee a working solution will still work, say, 3 minor updates later.

My setup

  • macOS 10.14
  • Android Studio 3.5.3
  • Android 9
  • adb: 1.0.41 Version 29.0.5-5949299

Solution

I got the same problem as yours. The only solution, i.e., the last resort after many tries, is go to your Terminal and run:

  • adb kill-server
  • adb start-server

Before this I've tried

  • Make sure USB debugging is still enabled. Sometimes it'd be turned off after OS updates.
  • Make sure USB configuration is not set to no data transfer or the likes. The actual mode is unimportant.
  • Reboot the Mac, phone, and Android Studio.
  • Enable/Disable hotswap in Android Studio.
  • Enable/Disable libusb backend in Android Studio.
  • Clean/Rebuild/Run cycle, with or without deleting the app on the device.

I believe the bolded parts are still essential, but without restarting adb it wouldn't have worked.

Upvotes: 7

Related Questions