How to install/replace on Android without using Eclipse

前端 未结 5 1441
野性不改
野性不改 2021-02-18 13:57

A buddy sent me a later version of an .apk file. I already had the earlier version on my device.

When I tried to adb install the file, I got this:

$ adb          


        
5条回答
  •  轮回少年
    2021-02-18 14:29

    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.

提交回复
热议问题