While this step isn’t mandatory with the Apptekz Mobile App Builder, it is possible to compile our apps manually for those that prefer to do it this way or that want to make direct changes to the source code before publishing.
To generate the APK file or AAB
To manually generate the Android APK file or AAB of your app, follow the steps below or generate the APK/AAB automatically with the Apptekz APK/AAB Generator. If you prefer to have it done for you, please open a support ticket and make your request at: https://apptekz.com/support
To manually generate the APK/AAB from the source files:
Android Studio is required to generate the APK/AAB manually.ย If you havenโt already, download and install Android Studio to generate your APK/AAB package.
Android Studio version 4+ is now required (you can download it here). Follow the process below to set up Android Studio.
How to Setup Android Studio for use with the Apptekz Mobile App Builder
Download the 4+ version of Android Studio:ย click here
Install Android Studio
Choose Standard:

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

Using Android Studio, create the APK/AAB Package
How to create an APK/AAB
Note: Be sure that Firebase for Android Push notifications are configured for your app prior to generating the app source code and for use in creating your APK/AAB.
From your Mobile App Editor CMS, download from โ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 โMore Actionsโ > โ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.

From the main menu click onย Build > Generate Signed Bundle / APKโฆ
Selectย Android App Bundleย orย 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โ, for a new app
โ โChoose exitingโ, if updating of an app that’s already published
(In this example, we are going publishing a new app, but updates will require nearly identical steps)
Okay, so in the case of a new app, we’ll chose โCreate newโ. (if updating, choosing existing is really the only difference in the process)
We recommend that you organize iOS folders the same way we’ve done for the Android version to keep things organized (if you haven’t already, download your iOS source code into it’s similar folder structure)
We will assume that you have already created a folder for your app publication on your computer and have downloaded the android source files into that folder. Let’s say 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โ.
Letโs go back to Android Studio. After you have clicked on โCreate newโ, you will see 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 for 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ย and click onย Finish.

The generation of your AAB/APK will begin
NOTE:
From Android Studio 2.0 and later you may 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โ as shown in the image below:

Once the AAB/APK is generated, follow the link to the article referenced below to publish your app on the Google Play Store:
https://apptekz.com/how-to-publish-your-android-app-on-the-play-store/
