MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
03/16/12 12:10 PM (13 years ago)

Keystore problems

I am trying to export my app and the first problem I'm running into is finding the correct keystore. This is the file I selected: C:UsersJohnandroid-sdkssourcesandroid-14androidsecurityKeyStore.java And I use the password of: android When I click next it say "invalid keystore format" and I am not able to select an alias. How do you fix this? Will it work if I create a new keystore and key?
 
MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
like
03/16/12 12:13 PM (13 years ago)
Im using eclipse and its a v1.4 app.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/16/12 12:16 PM (13 years ago)
Hi MadMaxwell, Yep, you can create new keystores. Just make sure you use the same release keystore for any updates to your app. Here is a doc with step-by-step instructions to help you along: http://www.buzztouch.com/resources/Signing_Android_Apps_v1.0.pdf Mark
 
MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
like
03/16/12 12:23 PM (13 years ago)
When Im creating a new key, what am I suppose to input for Validity(Years)? Does this mean how long the key is good for?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/16/12 12:29 PM (13 years ago)
Yes..that means how many years it's good for. Android recommends a validity period of 25 years or more. Mark
 
MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
like
03/16/12 12:35 PM (13 years ago)
I used the file above for my new keystore location, am I suppose to you something else because after I created a new key it said that the keystore was still invalid. Thanks for all the help Mark.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/16/12 12:38 PM (13 years ago)
I'm not sure I follow. If you create a new release.keystore or debug.keystore, and gave it the appropriate passwords and alias', then you should be able sign your apps with no issues. You can actually even create a new keystore during the Export process for your app...just follow the wizard. Have you tried that? Mark
 
MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
like
03/16/12 12:46 PM (13 years ago)
Yea, I'm using the wizard for the export process. The first page gives me the option to use existing keystore or create a new keystore. When I select create a new keystore the only thing that changes is that it asks me to confirm the password. It wont let me click next because it says that the file already exits...
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/16/12 12:54 PM (13 years ago)
I have a KeyStore Guide thay could help you. www.myskylla.wordpress.com Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/16/12 12:58 PM (13 years ago)
OK, this is how it should go: * Right-click your project, hit Export... * Select Export Android Application, hit Next * Your current project should be listed there, so hit Next * Select the Create New Keystore radio button * Browse to where you want to save the keystore, and give it a name like madmaxwell_release.keystore. Don't select the one (release.keystore) that already exits. * Provide a password, and verify. Hit Next. * Enter a keystore alias, like madmaxrelease. Put in your password twice, and a validity > 25yrs. Fill in one of the remaining fields (Name is a good one). * Hit Next * Select the destination and filename for your apk file. * Hit Finish. That's it! Let me know how it works out! Mark *
 
MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
like
03/16/12 01:03 PM (13 years ago)
I think I found the problem. * Browse to where you want to save the keystore, and give it a name like madmaxwell_release.keystore. Don't select the one (release.keystore) that already exits. I was selecting an existing file instead of create a new folder to save it to. I'll let you know what happens.
 
MadMaxwell
I hate code!
Profile
Posts: 17
Reg: Nov 01, 2011
Tucson
170
like
03/16/12 01:44 PM (13 years ago)
It works! Thanks for everything.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/16/12 01:47 PM (13 years ago)
Awesomeness! Make sure you post the URL to your app when you publish it so we can all take a look! Mark
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/16/12 02:13 PM (13 years ago)
If you do a google search of "keytool" there is an add-on for eclipse that will help you with building your keystores. I have it on my eclipse indigo and it works great
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/16/12 02:16 PM (13 years ago)
Is this what you're talking about : http://keytool.sourceforge.net/ Looks pretty cool!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/16/12 02:21 PM (13 years ago)
The tool is not necessary for creating the keystore, simple process, very useful for the Google Maps API key. Fred
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/16/12 03:05 PM (13 years ago)
Yes GoNorthWest. And though Fred is telling the truth, you do not "NEED" keytool, it is a neat add-on that is helpful to have... now if we only had an add-on that integrated advertising. Wish i was geeky enough to write raw code, that would be an add-on or plug in that ALL of us could use! :-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.