4

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.

B Morris
  • 41
  • 1
  • 3
  • 1
    Try using ADB shell from your command line to uninstall your package `adb shell pm uninstall -k com.your.package` – zed Mar 27 '17 at 17:23
  • Possible duplicate of [How to fix: Error device not found with ADB.exe](http://stackoverflow.com/questions/10705089/how-to-fix-error-device-not-found-with-adb-exe) – Code-Apprentice Mar 28 '17 at 16:14
  • See if the tips from this question help you to resolve your problem. – Code-Apprentice Mar 28 '17 at 16:14

1 Answers1

7

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.

kakyo
  • 10,460
  • 14
  • 76
  • 140
  • Killing and starting the adb worked for me. (I had changed the USB port as well). Meanwhile I noticed this issue usually happens when the macbook is low on battery (less than 30%). So I am not sure if this has anything to do with power management of macOS as the phone might be drawing power as well. adb kill-server adb start-server – Anish Apr 09 '21 at 03:21