Producing APK

How to Build release unsigned and debug APK

  • Click on gradle on the top right side of android studio, select task, and run assemble, it will create both unsigned release APK and debug APK.

  • you will find APK at app/build/outputs/apk

Build APK for different android versions

Build two APKs one with keeping the launcher intent filter for ClientMainActivity and the other without keeping the launcher intent filter for MainActivity.

While building and providing WinZO APK do the following changes for the main activity in the manifest file.

Keeping the launcher intent filter This is for Android 10 and above devices

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.Gameintegration">

    <activity
        android:exported="true"
        android:name=".ClientMainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Not keeping the launcher intent filter This is for Android 9 and below devices.

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.Gameintegration">

    <activity
        android:exported="true"
        android:name=".ClientMainActivity">
    </activity>
</application>

APK version code and version name should be in string format '1' and should be incremental on every update.

version code : '1ac' wrong

vesion code : '123' Right

APKs generated

  • debug one for less than android 10 and second for more than 10.

  • unsigned release for less than android 10 and second for more than 10.

Last updated