'What are all the changes to apk by AGP 7.1.0?

I have just upgraded Android Studio from Arctic Fox to Bumblebee and AGP from 7.0.4 to 7.1.0 enter image description here

The project currently has: enter image description here

The apk generated by gradle task assembleOfficialRelease for flavor "official" was in the following directory for many years:

..app/build/outputs/apk/official/release/app-official-release.apk

I assume it is the new AGP that has changed the location to:

..app/build/intermediates/apk/official/release/app-official-release.apk

I am trying to find out what else AGP has done to the apk but could not find any in the release notes.

I wonder if anyone with insights could tell me what changes the new AGP has done to the apk before I release it to users.

Update(2022-05-09)

Android Studio Chipmunk has put the apk file back to the folder ..app/build/outputs/apk/official/release/ without any notification. It killed me a lot of time again before I realized this.



Solution 1:[1]

I also observed this weird behavior. It seems like if you run the gradle task in Android studio, it will put the apk files in intermediates, while if you run the gradle task on command line (at least for bash on Linux), it will put the files in outputs.

The canary build of android studio with android gradle plugin 7.3.0-alpha05 seems to solve this issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1