4

I'm working on an android project, and I have to install it many times to test on virtual device. But at the end of yesterday, I can't re-install the app on the virtual device and this morning I find the solution, just uninstall the app and re-install it. That works for me, but now I have to uninstall and re-install it every time if I want to test.

So is there any solution to make it work like before? Install the app again and again without having to uninstall it.

1
  • When you say it doesn't install, do you mean it just won't install, or it force closes evertime?
    – Phil
    Commented Mar 13, 2012 at 2:30

1 Answer 1

15

adb install -r appname.apk -- the -r option says to replace the existing app. If you don't use -r, you must increase the version in your manifest in order to install over the top of the previous one.

2
  • Thank you for your quickly answer. But I'm very new in Android and I don't know how to use this command. Could you show me more detail?
    – NamPham
    Commented Mar 14, 2012 at 1:16
  • The "adb" command is a part of the Android SDK you downloaded, and it's the tool you use to interact with your device on a development level. xda-developers.com/android/adb-easy-tutorial may be of interest to you.
    – mah
    Commented Mar 14, 2012 at 1:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.