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

jarsigner does not always work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.0
    • 3.0.0
    • cordova-cli
    • None
    • Mac OS X

    Description

      When I used jarsigner like so:

      jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore
      TestApp2.keystore -keypass 6charpassword TestApp2-debug.apk TestApp2

      ... sometimes I get the return from terminal:

      jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry
      compressed size (expected 15088 but got 15506 bytes)

      This error comes because it has already been signed. Does this mean that "cordova build android" is automatically applying the .keystore file in the TestApp2/ folder, and we no longer need to do a jarsigner after the first keytool has been applied?

      Attachments

        Issue Links

          Activity

            People

              shepheb Braden Shepherdson
              websteve Steve Husting
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: