How to install/replace on Android without using Eclipse How to install/replace on Android without using Eclipse android android

How to install/replace on Android without using Eclipse


When you uninstall you have to specify the java path to the activity.

adb uninstall com.haseman.myapp

where my main activity is at src/com/haseman/myapp/LaunchActivity.java

further, you can do a replace install with

adb install -r myApplication.apk

Commonly, however, replacing a build will fail if the same key isn't used to sign both the apk on the phone and the apk you want to install. If you see an error "INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES" you need to uinstall the app first and then install it.


You have to use adb uninstall [packagename], for instance, adb uninstall org.vimtips.supacount.

This the package name listed in your manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="org.vimtips.supacount"    android:versionCode="6" android:versionName="0.1.5">


You need to supply the -r key:

adb install -r myapp-release.apk

This has been already discussed: Why does adb install <same-packagename-always-release> fail?