Status Update
Comments
ga...@google.com <ga...@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.
ga...@google.com <ga...@google.com> #3
Scott, assigning to you as it seem to complain the zip is not aligned while packaging which is very puzzling considering the steps...
ga...@google.com <ga...@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
sa...@google.com <sa...@google.com> #5
Not doing any post processing. No custom tasks. I will try to verify alignment now. Give me a sec.
Description
AGP: 8.0.0-alpha10
Using the snippet below:
and running
./gradlew :library:assembleDebug --configuration-cache
fails withAdding to
variant.sources.java
instead ofvariant.sources.resources
fixes the issue.