Signing Android Applications In 3 Easy Steps

how can i solve this error?

c:\Program Files\Java\jdk1.7.0_45\bin>keytool -genkey -v -keystore C:\Temp\my-re
lease-key.keystore -alias Trashrush -keyalg RSA -keysize 2048 -validity 10000
Enter keystore password:
Re-enter new password:
They don’t match. Try again
Enter keystore password:
Re-enter new password:
What is your first and last name?
  [Unknown]:  juario
What is the name of your organizational unit?
  [Unknown]:  1der
What is the name of your organization?
  [Unknown]:  1derminds
What is the name of your City or Locality?
  [Unknown]:  davao
What is the name of your State or Province?
  [Unknown]:  philippines
What is the two-letter country code for this unit?
  [Unknown]:  ph
Is CN=juario, OU=1der, O=1derminds, L=davao, ST=philippines, C=ph correct?
  [no]:  yes

Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) wi
th a validity of 10,000 days
        for: CN=juario, OU=1der, O=1derminds, L=davao, ST=philippines, C=ph
Enter key password for <Trashrush>
        (RETURN if same as keystore password):
[Storing C:\Temp\my-release-key.keystore]
keytool error: java.io.FileNotFoundException: C:\Temp\my-release-key.keystore (T
he system cannot find the path specified)
java.io.FileNotFoundException: C:\Temp\my-release-key.keystore (The system canno
t find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
        at sun.security.tools.KeyTool.doCommands(KeyTool.java:1152)
        at sun.security.tools.KeyTool.run(KeyTool.java:340)
        at sun.security.tools.KeyTool.main(KeyTool.java:333)

c:\Program Files\Java\jdk1.7.0_45\bin>

Does C:\Temp exist?

I also want to get trouble with this after writing the code in the cmd, i get an error below:

C:\Users\WIN7>cd C:\ Program Files\Corona Labs\Corona SDK\Resources keytool -genkey -v  -keystore myappname.keystore -alias myappname -keyalg RSA -validity 999999

The system cannot find the path specified.

They are two different commands:

cd C:\ Program Files\Corona Labs\Corona SDK\Resources

keytool -genkey -v  -keystore myappname.keystore -alias myappname -keyalg RSA -validity 999999

Thank you so much for such an informative post. But we can also make use of keytool to perform such an activity. It is in built when we download java. So, now without the Android SDK we can signin to such androids apps.

Thanks for posting. Its very useful to me. Can you explain details about Android 5.0 is it useful?

I’m not sure what you’re looking for @thomas24.andrews.  I’m not aware of any changes in signing Android apps with regards to Android 5.0 Lollypop. 

It sounds like if you’re asking if Android 5.0 itself is useful. If so, this is not the right thread to be asking this question on.  This is about app signing.

Rob

You have a good idea about the android os and the steps is quite interesting. But I want to say that we need to declare which version of OpenGL ES your application requires, you should use the android:glEsVersion attribute of the <uses-feature> element. You can also use the <supports-gl-texture> element to declare the GL compression formats that your application uses.

Thanks

Nice tips dude great work 

Great info. specially for the beginners…You made it easy for us to signup android applications by explaining these easy to understand steps…
 

This is very nice information me, thank you

It is easy when reading your post :slight_smile: Thanks for sharing this useful information

These are very easy steps. Thanks for sharing the info.

Hi, This post is very useful at the same time I have tried a lot and finally it helped me to learn about android market. Thank you for the explanation

Awesome! thanks for the info.

hiii.
Nice  this information is  best and  easyl know  all step …i liked this  login app information …Tnks…share  this  types  information …

I don’t really understand the meaning of signing ?

Is it " leaderboard " google for achievement ?

Thanks.

When you wish to upload an app to either Apple iTunes or Google Play, they want to verify that you are who you say you are and that the app you’re uploading as not been compromised.

This is done by generating a digital signature and “signing” your app with it.  Now a bunch of Computer Science is used in the technicals of how signing works, but a quick explainer is that some value is calculated against your package and stored with your secure certificate/key combination and when someone goes to run your app, the operating system performs the same calculation and compares it to your computed value in the signature and if they match, they allow the app to run.

In Apple terms this is done using your provisioning profile. For Google, you have a key alias that’s stored in your keystore file.

For Corona SDK builds for iOS you pick the provisioning profile and we do the signing in the background so you don’t have to deal with it. For Corona SDK builds for Android you pick your keystore and the key alias and again, we take care of the signing for you. You just have to make sure you have the valid profile/keystore setup.

Rob

Thanks for sharing information.

Hi,

This process was not bad. I managed to to get the digital certificate and upload to the Play store. However, my game doesn’t work. So where could I have gone wrong?

The game is about a cat shooting lasers to asteroids. It works in the simulator. As the android app, a picture of a cat appears and a red button. You tap the button and the “meow” sounds. I do not even have this sound!!

I have the link to the code:

https://drive.google.com/open?id=0B3jynNEHN3gTcVBDNmpkMXRCZFU

The app is called Asteroid Survival. Black background with red writing - If it can not be found, then search Merreko.

I know this isn’t the place for troubleshooting and I must figure it out, but I am a real newbie. Once I can see the way then I can carry on… Otherwise I give up. :frowning: