> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/nfc-wallet-sdk-android/es/get-started/configuration/1.-binary-integration/build-multiple-apks.md).

# Compilar varios APK

## Resumen

Para reducir el tamaño del APK, genere un APK por arquitectura de CPU (ABI).

Para más información, consulte la documentación de Android sobre divisiones de APK:\
<https://developer.android.com/build/configure-apk-splits>

El SDK de NFC Wallet admite estas ABIs:

* `armeabi-v7a` (32 bits)
* `arm64-v8a` (64 bits)

Cuando habilita las divisiones ABI, Gradle genera un APK por ABI para su **aplicación de billetera digital**.

La figura siguiente ilustra la construcción de APK para arquitecturas de 32 y 64 bits.

<figure><img src="/files/c55af782f85cdd09883aaf1b66c7e3af1cae32a4" alt="Overview of splits for architecture"><figcaption><p>Descripción general de las divisiones por arquitecturas</p></figcaption></figure>

{% hint style="info" %}

## Consideración sobre el tamaño <a href="#size-considerationbr" id="size-considerationbr"></a>

El AAR del SDK contiene nativos `.so` bibliotecas para todas las ABIs compatibles.

* Tamaño del AAR universal = tamaño(`armeabi-v7a` `.so`) + tamaño(`arm64-v8a` `.so`)
* Con las divisiones ABI, cada APK generado contiene solo una `.so`
* Tamaño del APK de 32 bits ≈ tamaño(`armeabi-v7a` `.so`) + otros componentes de la aplicación
  {% endhint %}

## Configure su compilación para APKs múltiples <a href="#configure-split" id="configure-split"></a>

En el archivo build de su módulo de aplicación:

* Habilite las divisiones ABI para que Gradle genere un APK por ABI.
* Espere nombres de APK como `appname-abi-buildType.apk` (por ejemplo, `mpa-arm64-v8a-debug.apk`).
* Si publica varios APKs, asigne un `versionCode` por APK antes de subirlos a Google Play.\
  Vea: <https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions>

{% tabs %}
{% tab title="Groovy (build.gradle)" %}
{% code title="app/build.gradle" %}

```groovy
android {
    splits {
        // Genere un APK por ABI.
        abi {
            enable true
            reset()
            include "armeabi-v7a", "arm64-v8a"

            // No genere un APK universal que contenga todas las ABIs.
            universalApk false
        }
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="Kotlin (build.gradle.kts)" %}
{% code title="app/build.gradle.kts" %}

```kotlin
android {
    splits {
        abi {
            isEnable = true
            reset()
            include("armeabi-v7a", "arm64-v8a")
            isUniversalApk = false
        }
    }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-android/es/get-started/configuration/1.-binary-integration/build-multiple-apks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
