I am using windows 7. One of my client gave me a apk file to see a previous project developed by another developer. But I have no android phone. So I want to install that apk file to my AVD device of my android sdk. But I am fail. Please give me details instruction how to install apk file inside AVD device of Eclipse(Android SDK). I am using windows 7.
Asked
Active
Viewed 1.8k times
1 Answers
8
The command is:
adb install app.apk
If you want to install it over an existing installation, you will need:
adb install -r app.apk
This will only work if the installed app and the new app.apk file are signed with the same signature. Otherwise you'll have to uninstall the existing app first.
Make sure that you have [android installation]\platform-tools
on your PATH. If you don't want to modify your PATH, use the full path to adb in the command line. For example:
c:\android-sdk-windows\platform-tools\adb.exe install app.apk

Ted Hopp
- 232,168
- 48
- 399
- 521
-
Showing this message "adb is not recognized as an internal or external command, operable program or batch file". – Tarun Apr 11 '12 at 18:35
-
@Tarun adb.exe is in the platform-tools folder of your SDK. – NickT Apr 11 '12 at 18:46
-
@Tarun I updated my answer to address this. – Ted Hopp Apr 11 '12 at 18:50
-
1Tp install apk in avd, just manually drag and drop the apk file in the opened emulated device The same if you want to copy a file to the sd card – Slimane MEHARZI Apr 04 '19 at 08:13
-
Ugh of course the drag and drop APK doesn't work for me. The "Installing APK" dialog comes up but it just keeps spinning. I'll have to try the ADB method but I've had issues connecting to the emulated device in the past. Why can't the easy method work for me? – clamum Oct 18 '21 at 04:31