Skip to content

Android Release Build (APK) with New Architecture #2010

@ravindraguptacapgemini

Description

@ravindraguptacapgemini

Hi, before migrating to new architecture we were able to use ./gradlew assembleRelease to create release APK, but now we have below options:

  1. ./gradlew bundleRelease && ./gradlew assembleRelease
  2. npx react-native run-android --mode release

The problem with 2nd approach is it creates heavier apk size(65.x mb) as compared to first approach(62.x mb) and it also looks for connected device to run the APK created.

I just wanted to know if there is any command with to just create the APK with react-native like npx react-native build-android --mode=release (which create aab file) or if there is option we can use to change the output file as APK instead aab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions