This article goes over the general requirements for the setting up the Android Studio, the generation of an apk file, and the publication of an Android app to Google Play.

Download the last version of Android Studio: click here

Then install Android Studio.

Choose Standard:

Screen Shot 2016-03-25 at 17.50.36

Select this setting (“I do not have a previous version of Studio or I do not want to import my settings”):

Screen Shot 2016-03-25 at 17.48.36

 

How to create an APK

From the publication screen select “Generate Source Code”  for Android.  You will recieve an email once this process is done.  Download your source code from the publication page.

And unzip this file.

Then go back to the main menu of Android Studio:

Screen Shot 2014-10-12 at 12.08.56
Click on “Import Project”. You will see a warning message, don’t worry about that it is the normal process, click on Ok.

Then choose the Android Source folder you have unzipped, and click on “import”.

When your project is imported, from the left menu, click on your folder “android_source” and open the tree.

From the main menu click on Build >Generate Signed APK.

Then, click next and you get this screen:

Screen Shot 2014-10-12 at 18.30.44

Depending if it’s an update of an app already published, or a new app choose:
– “Create new”, if it’s a new app
– “Choose exiting”, if it’s an update of an app already published

 

Okay, so you have chosen “Create new”. Now we suppose that you are someone very organized , and thus that you have already create a folder for your app publication on your computer. Before having downloaded the android sources file, you have created a folder on your computer named “My Awesome App”, for instance, with two subfolders: one for the graphic items, like screenshots of this app, and one for the certificates which will be named “certificate”. Thus, on your computer we have a folder named “My Awesome App” with the subfolder “certificate” and the other subfolder “graphics”.

Okay now let’s go back to Android Studio. You have clicked on “Create new”, and you get this screen:

Screen Shot 2014-10-12 at 18.39.05

Now click on the button to browse in your computer folder and go to the “certificate” folder, in the main folder “My Awesome App”, and below in the “File name” field, enter “certificate”, and click ok:

Screen Shot 2014-10-12 at 18.43.29

Enter a password for the Key Store, enter an alias name (the name of the app is OK), and a password the Key Alias, set the validity period to 99 years, and enter the name of the app owner. Then click Ok:

Screen Shot 2016-04-04 at 15.16.39

In the summary screen click next :

Screen Shot 2014-10-12 at 18.46.17
Then in the next screen, choose “release” for “Build Type” and then click on Finish. Your APK is built.

NOTE:

From Android Studio 2.0 you can encounter the error “Error:’com.android.build.gradle.BasePlugin’ does not implement the Plugin interface.”. To fix this problem, just go in the menu of Android Studio in File > settings > build execution deployment > build tools > gradle, and then check the option “Use default gradle wrapper” like in the image below:

gradle

To fill out the app sheet on Google Play

Store Listing

In the Store Listing page, fill out the two descriptions . In the Graphic Asset section, the mandatory elements are a 512×512 icon, at least 2 screenshots whatever if it is for tablets or phones (you can use the ones you have generated for the iPhone version (use ones created for iPhone 5 or iPads), and a 1024x500px image that will illustrate the app.

Then, in the Categorization section, choose “Application” for Application Type. Then select the appropriate category for this app and then select a content rating for this app.

Service & APIs

Click on the “Link a Sender ID” button, and paste the key that was sent to you in your welcome email.

APK

Click on “Upload your first APK to production” and upload the APK that has been created.

Go in Pricing & Distribution

Select if it’s a paid or free app. It can be a paid only if the developer account has enabled Google Merchant Services. Then select all the countries or just specific one(s). Then scroll down and check “Content guidelines” and “US export laws”. And Save.

Publish

In the upper right corner click on “Draft” and select “Publish”.
Voila! Your app is published.