50%

Become a Vendor

COMMISSION

Developer for

Siberian&Nwicode

How to compile manually Android apps?

You are here:
< All Topics
Table of Contents

First of all you need Android Studio to generate the APK. If you haven’t already you will have to download and install it:

You need the Android Studio version 3+ (you can download it here). Follow the following process below to set up your Android Studio. (You can check the version of your Siberian at the bottom of your backoffice)

Download the 3+ 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

You are good. Now go to section How to create an APK.

Note: don’t forget that you have to configured Firebase for Android push notifications on your backoffice prior to generate the app sources and create your APK. Here is our article about Android push notifications.

From your backoffice, in Manage > Application(s), enter in the app page, go down in the page to “Mobile Source Codes & Builds” and download the Android Source files by clicking on “Android Version”:

Unzip this file.

Then go back to the main menu of Android Studio:


Click on “Import project”.

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

Do not update Gradle if Android Studio asks you.

When your project is imported, from the left menu, click on Project  and select Project in the list to display your folder “android_source” and open the tree.

If you have an error “ERROR: The minSdk version should not be declared in the android manifest file…” click on “Move minSdkVersion to build file and sync project“.

Then click on “Do Refactor“.

From the main menu click on Build > Generate Signed Bundle / APK

Select APK:

Then, click on Next and you get this screen:

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

(In this tuto, we are going to see the first case, but second case is almost the same.)

Okay, so you have chosen “Create new“. Now we suppose that you are someone very organized (if not already, take a look to the article about iOS publication and organize your folders the same way), 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:

Now click on the button to browse in your computer folder and go to the “Certificate” folder, in the main folder “My Awesome App”, enter “certificate.jks” in ‘Saves As:‘ field, and click on Save:

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 25 years, and enter the name of the app owner. Then click Ok:

In the summary screen click Next :


Then in the next screen, choose “release” for Build Variants, select “V1 (Jar Signature)” for Signature Versions and click on Finish.

The generation of your APK will begin.

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 Preferences > Build, Execution, Deployment > Gradle, and then check the option “Use default gradle wrapper” like in the image below:

Once the APK is generated, you can follow this documentation to publish your app on the Google Play Store:

Appteam to offer you a better experience on this site uses its own and third-party technical, analytical and profiling cookies. The site also uses third-party tracking cookies to adapt advertising to your preferences.

If you want to know more or refuse consent to the use of cookies click here. By continuing to browse, you consent to the use of cookies.

Privacy Settings saved!
GDPR Center

When you visit a website, it can store or retrieve information on your browser, mainly in the form of cookies. Check your personal cookie services here.

These cookies are necessary for the website to function and cannot be disabled in our systems.

In order to use this website we use the following technically required cookies
  • wordpress_logged_in_
  • wordpress_sec
  • wordpress_test_cookie

We use WooCommerce as a purchasing system. 2 cookies will be stored for the shopping cart and order processing. These cookies are strictly necessary and cannot be disabled.
  • woocommerce_cart_hash
  • woocommerce_items_in_cart

  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services

Main Menu