How to publish?

Windows @roaminggamer

Did you create your Google Play Developer account yet?

Do you know if you have ‘keytool.exe’ on your machine?  If you’re not sure, you can find out by doing this:

  1. Install everything.exe (my favorite file finding tool)

  2. Run it

  3. Let it discover your system (takes a few minutes when you first start it).

  4. Type keytool.exe in the search bar

If you have it, you’ll see something like this:

everything_keytool.png

5a. Please type out the path to ALL copies you have on your machine below and I’ll give you steps from there.  

5b. If you do not have any instances of the tool, also let me know and we’ll go from there.

got that @roaminggamer

Does that answer mean you’ll follow the steps I suggested, or you have keytool.exe?  If the latter, please tell me the path it lives at.

It means i have keytool exe what steps did you give? @roaminggamer

I gave you steps to get the path to the tool (which you STILL have not provided) I’m asking for this so I can tell you exactly how to run the tool and make it work for you.

Note: I’m done answering questions today.  So, I’ll check back tomorrow.

Hi again.  This is my last post here unless I get a response I can work with.

I want to get the path to “keytool.exe” on your system so I can give you tailor-made instructions for generating a production keystore.

I’ll then tell you how to use that keystore to sign your app for upload to the GooglePlay store.

You will still need to set up your own Google Play developer account.  Also, if you want to sell games, you’ll have to go through steps to set up payment options on your account.  These steps are outside of the scope of things I can help with.

I can help you get the app ready for upload, the rest is pretty much up to you.

However to do that I need the full path to “keytool.exe” including the drive letter.  

Program Files\Java\jdk1.8.0_45\bin\keytool.exe @roaminggamer

@roaminggamer Thanks for the help if you havent got time dont worry  :slight_smile:

** JUST FIXED TYPO IN INSTRUCTIONS ** 

OK, let’s start simple.  Please:

  1. Open a command prompt 

  2. Copy and paste this (you didn’t include drive letter so I’ll assume C:), including the quotes:

    “C:\Program Files\Java\jdk1.8.0_45\bin\keytool.exe”

  3. Confirm that it ran.

If you get a message similar to this, continue:

Key and Certificate Management Tool Commands: -certreq Generates a certificate request -changealias Changes an entry's alias .... more lines after this

Now, let’s generate the keystore.

  1. Run this command to generate a keystore called “myapp.keystore”:

    “C:\Program Files\Java\jdk1.8.0_45\bin\keytool.exe -genkey -alias myapp -keyalg RSA -keystore myapp.keystore -validity 10000”

You’ll need to supply answers to the questions the tool asks on your own.

  1. If you got this far, there should now be a file called “myapp.keystore” in your current directory (whereever the console says you are).

  2. Do an android build and select that file as the keystore.

  3. You’ll be prompted for a password twice.  Supply the one you used when creating the keystore.

  4. Done.  

The APK that results from step 7 is ready for uploading to the Google Play Developers console.

Thanks :slight_smile: it worked @roaminggamer

I got that but keytool isnt a batch file or external command still 

So i did the instructions you said it worked but when typing in the code for the release mode get that error above

no its fine dont worry i saw the other instructions below @Roaminggamer

I think you’re seeing posts out of order?  

Whatever the case I hope you’ve got this worked out.

One last post for good measure.

In this video I sign an app w/ a Production Key:

https://www.youtube.com/watch?v=dg8dvXq8yzo&feature=youtu.be

In this video I correct a mistake I made in the last video (everybody makes mistakes) and then upload the new APK to my Google Developer Page:

https://www.youtube.com/watch?v=RQyU9qYf3do&feature=youtu.be