Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Error signing my apk wit jarsigner

Tags:

android

apk

I made a key file like this:

C:\Users\Alex>keytool -genkey -v -keystore alexkey.keystore -alias alexkey -keyalg RSA -keysize 2048 -validity 10000

and then I tried to sign my .apk file with it like this:

C:\>jarsigner -verbose -keystore alexkey.keystore problemio.apk alexkey

and I saved the .apk file by right-clicking the project name in Eclipse --> Android tools --> Export unsigned application package.

and then I put the .apk file in the same dir as the key, and ran the jarsigner command from that same dir.

Any idea why I got this error:

jarsigner: unable to create: problemio.apk.sig

Thanks!

like image 823
GeekedOut Avatar asked Mar 23 '12 01:03

GeekedOut


2 Answers

Credit to @yorkw for the answer, the real solution to this problem is a folder permissions issue. Make sure you are operating in a folder that you can modify. I just fixed that same problem for my self by making sure I was in a folder with the right permissions.

like image 142
GeekedOut Avatar answered Oct 23 '22 04:10

GeekedOut


This error is related to permission issues.

  1. Check the folder(Full permission is there or not)
  2. Run as administrator for command prompt
like image 26
Baskaran Avatar answered Oct 23 '22 05:10

Baskaran