Status Update
Comments
hu...@google.com <hu...@google.com>
bi...@google.com <bi...@google.com>
bi...@google.com <bi...@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.
de...@squareup.com <de...@squareup.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...
bi...@google.com <bi...@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
bi...@google.com <bi...@google.com> #5
Not doing any post processing. No custom tasks. I will try to verify alignment now. Give me a sec.
eb...@netflix.com <eb...@netflix.com> #6
Scenario 1:
built my apk with agp alpha09, but didn't update firebase (bom = 30.2.0)
/Users/idle/Library/Android/sdk/build-tools/31.0.0/zipalign -c -v 4 app-release.apk
"Verification succesful"
Scenario 2:
built my apk with agp alpha09, but I DID update firebase (bom = 30.3.1)
/Users/idle/Library/Android/sdk/build-tools/31.0.0/zipalign -c -v 4 app-release.apk
"Verification FAILED"
Description
DESCRIBE THE ISSUE IN DETAIL:
In AGP 7.4+, the this commit ), however it is still marked as an
outputKeepRules
property inDexingFileDependenciesTask
was changed from aRegularFileProperty
to aDirectoryProperty
(inOutputFile
.This causes a configuration error as gradle expects this property to be a file, but finds a directory instead. It should be marked with `OutputDirectory.
Configuration error:
This property appears to have been removed in AGP 8.1, but this issue still affects both AGP 7.4 and 8.0.
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: --
Version of Gradle Plugin: 7.4, 8.0-beta02
Version of Gradle: 7.6
Version of Java: --
OS: --