Fixed
Status Update
Comments
ac...@google.com <ac...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
cm...@google.com <cm...@google.com> #2
Okay. I tried a bunch of agp+android studio versions
The last working version was classpath("com.android.tools.build:gradle:7.4.0-alpha06")
once I moved to
classpath("com.android.tools.build:gradle:7.4.0-alpha07")
then things start breaking on firebase app dist.
[Deleted User] <[Deleted User]> #3
Scott, assigning to you as it seem to complain the zip is not aligned while packaging which is very puzzling considering the steps...
am...@google.com <am...@google.com> #4
OP, when you build the APK with AGP, are you doing any post-processing on the APK and/or do you have any custom tasks that are modifying the APK?
Can you try to verify the alignment of your APK with zipalign
locally (zipalign
is included in build-tools
):
zipalign -c -v 4 foo.apk
Description
DESCRIBE THE ISSUE IN DETAIL:
This project has a Gradle module who's main responsibility is packaging non-trivial library code such that it is consumable by the app's build. This is the only place in our project where source sets are customized. Commenting out this code results in a working build, but the app fails at runtime due to the missing library code. This code worked in AGP 7.3.1 and earlier.
STEPS TO REPRODUCE:
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: Electric Eel Version of Gradle Plugin: 7.4.0 Version of Gradle: 7.5, 7.5.1, 7.6 Version of Java: 11, 17 OS: macOS 12