Reputation: 41
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
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
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
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
no data transfer
or the likes. The actual mode is unimportant.I believe the bolded parts are still essential, but without restarting adb it wouldn't have worked.
Upvotes: 7