Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14588

Android: Packaging - Can't install packaged app onto Android with Java 7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: Release 3.1.2
    • Fix Version/s: None
    • Component/s: Android, Tooling
    • Labels:
    • Environment:

      Titanium Studio, build: 3.1.2.201307091805
      SDK build: 3.1.2.v20130708163051
      Java version: 1.7.0_21
      OS: Max OS X (10.8.4)

      Description

      Details:

      If you have Java 7 on your computer and packaged your Titanium app for the Play Store, INSTALL_PARSE_FAILED_NO_CERTIFICATES is returned if you try to install the packaged app to an Android device.

      This does not affect machines that have Java 6.

      Here is the Q&A thread: http://developer.appcelerator.com/question/151653
      Here is the referenced workaround: http://developer.android.com/tools/publishing/app-signing.html#signapp

      Steps to reproduce:

      1. In Titanium Studio, create a default app
      2. Select the app and go to Publish > Distribute - Android App Store
      3. Fill out the required fields and press publish
      4. After app is packaged, open terminal and cd to where the packaged app is
      5. Plug in an Android device and run the following command: adb install <APP>.apk

      Actual:

      [INSTALL_PARSE_FAILED_NO_CERTIFICATES] is returned:

      $ adb install testThePackage.apk 
      3122 KB/s (6101612 bytes in 1.908s)
      	pkg: /data/local/tmp/testThePackage.apk
      Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
      

      Expected:

      Should be able to install app to Android device after Titanium Studio packages it for the Play Store.

      Note:

      To workaround this issue:
      1. Run the following command: jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <YOUR_KEYSTORE>.keystore <YOUR_PKG_APP>.apk <YOUR_KEYSTORE_ALIAS_NAME>
      2. Enter your keystore's password
      3. Install the app to Android device again

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code