1 Reply Latest reply on Jan 14, 2013 6:11 AM by Mariano Colabraro

    Error generating keystore file while building for Android

      Hi all,
      I have a very simple app RhoMobile running for Windows mobile. Now when I want to build it for Android I get the following error message:

       

      Error generating keystore file

       

      This is an extract of the logs

       

      Building APK file...

      PWD: C:/adt-bundle-windows-x86_64/sdk/tools

      CMD: apkbuilder.bat C:/Users/cmn478/workspace/doubleInstance/bin/target/android/doubleInstance_tmp.apk -u -z C:/Users/cmn478/workspace/doubleInstance/bin/rhodes.ap_ -f C:/Users/cmn478/workspace/doubleInstance/bin/classes.dex

       

       

      THIS TOOL IS DEPRECATED. See --help for more information.

       

       

      Generating private keystore...

      PWD: C:/MotorolaRhoMobileSuite2.2.1.13/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.13

      CMD: C:/Java/32/jdk1.6.0_32/bin/keytool.exe -genkey -alias rhomobile.keystore -keyalg RSA -validity 20000 -keystore C:/Users/cmn478/.rhomobile/keystore -storepass 81719ef3a881469d96debda3112854eb -keypass 81719ef3a881469d96debda3112854eb

      What is your first and last name?

        [Unknown]:  What is the name of your organizational unit?

        [Unknown]:  What is the name of your organization?

        [Unknown]:  What is the name of your City or Locality?

        [Unknown]:  What is the name of your State or Province?

        [Unknown]:  What is the two-letter country code for this unit?

        [Unknown]:  Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?

        [no]:  What is your first and last name?

        • Re: Error generating keystore file while building for Android

          Alright, I think now I figure out that was going on:

           

          I generate the missing key manually:

           

          So I went to the folder:

           

          c:\Program Files\Java\jdk1.6.0_38\bin

           

          and execute the keytool.exe with the parameters shown in the line that was showing me the error:

           

          keytool.exe -genkey -alias rhomobile.keystore -keyalg RSA -validity 20000 -keystore C:/Users/cmn478/.rhomobile/keystore -storepass 81719ef3a881469d96debda3112854eb -keypass 81719ef3a881469d96debda3112854eb

           

          I guess those -storepass and -keypass parameters are particularly for each computer.