Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9557

cordova-android fails to install release apk on device if debug version is already installed on device

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-android
    • None

    Description

      Repro steps:

      cordova platform add android
      cordova run android --debug
      cordova-run android --release --buildconfig=somevalidbuildconfig.json
      

      Expected:
      Both debug and release packages are ran successfully on device/emulator

      Actual:
      Release package fails to install with following error:

      ERROR: Failed to launch application on device:
      ERROR: Failed to install apk to device:
      WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
              pkg: /data/local/tmp/android-debug.apk
      Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
      

      Attachments

        Issue Links

          Activity

            People

              vladimir.kotikov Vladimir Kotikov
              vladimir.kotikov Vladimir Kotikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: