# Android Build and Publish

## **Publishing Your Android App to Google Play Store**

Deploy your eMOBIQ-built Android app to the Google Play Store manually or via auto-publishing

This guide focuses **primarily on eMOBIQ AI’s workflow**. For detailed Android/Google Play steps, follow the linked official documents.

***

### **Build Settings**

#### **Prerequisites**

* A keystore File
  * *Don’t have one?* Follow this online guide on how to [Generate a keystore file](https://support.kotobee.com/en/support/solutions/articles/8000065886-create-an-android-keystore-file)
* A Google Play [**Developer Account**](https://play.google.com/console/u/0/signup) (Official Documentation: [setup guide](https://developer.android.com/distribute/console))
* A Google Cloud [Console Account](https://console.cloud.google.com/apis/api/androidpublisher.googleapis.com/overview?project=879362208751\&inv=1\&invt=Ab3bJg)

{% hint style="success" %}
*Tip: For different apps, a different keystore is recommended*
{% endhint %}

**Go to the** `Publish` Tab → `Settings` → Select `Android` → Build Settings

<figure><img src="https://1183608340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUDFGj32EEDxm4CJ43yZ%2Fuploads%2Fgit-blob-708d3c88f5153675bf2cd47b627da6cd7f3bd28a%2FUntitled%20design%20(2).gif?alt=media" alt="" width="563"><figcaption></figcaption></figure>

***

### **Building Your App**

1. **Go to the** `Publish` Tab → `New Build` → Select `Android` → `Select Version` → `Build`

<figure><img src="https://1183608340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUDFGj32EEDxm4CJ43yZ%2Fuploads%2Fgit-blob-1b1f18dbd82fa542cf885ae11f22721ec3029283%2FUntitled%20design%20(1).gif?alt=media" alt="" width="563"><figcaption></figcaption></figure>

2. Choose `.AAB` for deploying to Google Playstore

   <figure><img src="https://1183608340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUDFGj32EEDxm4CJ43yZ%2Fuploads%2Fgit-blob-ececc494ba4e8345a8b15c807800900392a2fb80%2Fimage%20(5)%20(1)%20(1).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

***

### **Deploy to Google Play**

**Link Google Play to eMOBIQ AI**

1. Google Service Account file in eMOBIQ AI refers to your Service account in [Google Console](https://console.cloud.google.com/)

<figure><img src="https://1183608340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUDFGj32EEDxm4CJ43yZ%2Fuploads%2Fgit-blob-28faedd7e4b0a5151bd9eac652bb5620da1173ce%2Fimage%20(2)%20(1)%20(2)%20(1).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

2. Ensure that the Google Service Account and Google Play Console account is linked by navigating to `Users and permissions` tab → `Invite User` → Fill in the `Email address` with the Google Service Account you created

<figure><img src="https://1183608340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUDFGj32EEDxm4CJ43yZ%2Fuploads%2Fgit-blob-7904680a416c2374a6426c5422e90575ef8b48f5%2Fimage%20(3)%20(1).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

3. Add your app and ensure App permissions and Account permissions are given full access
4. After building the app successfully and creating your Google Service account, navigate to `Settings` → `Android` → `Publish Settings` → `Upload` Service Account file in **JSON** format

<figure><img src="https://1183608340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUDFGj32EEDxm4CJ43yZ%2Fuploads%2Fgit-blob-1ac193b16dfbecd453fbae145e1e4013c75fceee%2Fimage%20(4)%20(1).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %}
*Note: App metadata (must match Google Play Console)*
{% endhint %}
