HOW TO MANUALLY GENERATE YOUR APK WITH ANDROID STUDIO
Although you don’t need this article as we have enabled auto-apk generation for all users for free on their dashboards but incase you’re not using SWIFTSPEED APPCREATOR, probably you’re a developer sourcing for documentation or resources then this module will be useful
Download the 3+ version of Android Studio: click here
Then install Android Studio. Please note that you can have both the 0.8.14 version (if you want to keep building apps for Siberian version below 4.0), you just have to install this new Android Studio in another folder of your computer than the one you already use for the 0.8.14 version).
Select this setting (“I do not have a previous version of Studio or I do not want to import my settings”):
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 “import”.
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.
From the main menu click on Build > Generate Signed APK.
Then, click 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”, and below in the “File name” field, enter “certificate”, and click ok:
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 :
The generation of your APK will begin.
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: