2

I have a question similar to why unaligned apk is needed? as to why the app-unaligned-apk is required.

I do understand the two step process in generating the apk but I still haven't been able to understand why the unaligned apk is stored in the outputs folder even once the required apk has been generated. Any thoughts?

Community
  • 1
  • 1
Actiwitty
  • 1,232
  • 2
  • 12
  • 20
  • 2
    The unaligned apk is just an intermediate apk. First, the unaligned apk is generated. Then, the unaligned apk gets aligned and produces the aligned apk which is the app-debug.apk. – Shubhank Gupta Nov 24 '15 at 05:20
  • Possible duplicate of [why unaligned apk is needed?](http://stackoverflow.com/questions/22058210/why-unaligned-apk-is-needed) – Mauricio Gracia Gutierrez Nov 24 '15 at 05:36
  • 1
    No, that is not my question. My question is why do we need to save the intermediate apk once the apk is generated. Any uses of the intermediate apk? – Actiwitty Nov 24 '15 at 05:38
  • http://stackoverflow.com/a/33886306/3193867 – SMR Dec 21 '15 at 06:54

1 Answers1

0

@Courtesy goes to Difference between app-debug.apk and app-debug-unaligned.apk

The unaligned apk is just an intermediate apk. First, the unaligned apk is generated. Then, the unaligned apk gets aligned and produces the aligned apk which is the app-debug.apk.

Read Signing Your Applications

The build process of Android projects is handled by the Gradle build system. If you create a new project in Android studio, the Gradle build scripts are automatically created. Android studio wraps the Gradle runtime, hence no additional installation is required.

  • Multi-apk: supporting the creation of multiple apk for different device types while reusing parts of the code

Android Studio, make it easy to create several variants of an application, either for multi-apk distribution or for different flavors of an application. This means, you can have different builds for debug, release or may be different variant build from the same code.

Community
  • 1
  • 1
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198