Manik Roy
Manik Roy

Reputation: 83

What are the main deference between Build bundle vs Generate Signed bundle apk?

What are the main deference between Build bundle vs Generate Signed bundle android studio.

Upvotes: 8

Views: 2660

Answers (2)

Mickäel A.
Mickäel A.

Reputation: 9377

Muhammad's point about the Build Bundle / APK feature isn't entirely true.

For example, if you have a release signing config that is used by your prod product flavor, and you select the prodRelease variant as active variant in Android Studio and then click the Build Bundle / APK button, then Gradle will generate a signed prod build using your release signing config. The same happens when you click the Run 'app' button (the green ▶ icon).

The only real difference I see is that the Build Bundle / APK generates a build using the current active variant that you've selected in Android Studio and the signing config associated to it in the gradle file, whereas the Generate Signed Bundle / APK... button allows you to build any variant with any signing config, even one that is not in the gradle file.

Upvotes: 7

Muhammad Usama Rabani
Muhammad Usama Rabani

Reputation: 776

Build Bundle

When you normally run your application, an APK file is generated locally which is like a ZIP file and is easily unzippable, no security is implemented, and you can get the code from that APK file. It is used basically for local testing.

Signed apk

It is that APK you can create with a password and security and it is not easily unzippable and is used for production.

Upvotes: -3

Related Questions