Status Update
Comments
ju...@google.com <ju...@google.com>
je...@google.com <je...@google.com>
sa...@google.com <sa...@google.com> #2
Can you elaborate on what
A failure occurred while executing com.android.build.gradle.internal.tasks.ApkZipPackagingTask$ApkZipPackagingRunnable Is a directory
means? Is it that ApkZipPackagingRunnable expect all content to be files but now it encounters a directory?
mi...@google.com <mi...@google.com> #3
I tested this locally and found the same error. It comes from ApkZipPackagingTask
jar.addFile()
method trying to add the baselineProfiles
directory.
sa...@google.com <sa...@google.com> #4
Should the fix be to check if the item is a directory before calling addFile then?
mi...@google.com <mi...@google.com> #5
Yes there should be an additional check that the item is a file. I will add this to my CL.
mi...@google.com <mi...@google.com>
an...@google.com <an...@google.com> #6
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala | 2024.1.1 Canary 3
- Android Gradle Plugin 8.5.0-alpha03
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
an...@google.com <an...@google.com> #7
The fixes for this issue are now also available in:
- Android Studio Jellyfish | 2023.3.1 RC 2
- Android Gradle Plugin 8.4.0-rc02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
an...@google.com <an...@google.com> #8
The fixes for this issue are now also available in:
- Android Studio Iguana | 2023.2.1 Patch 2
- Android Gradle Plugin 8.3.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
tu...@gmail.com <tu...@gmail.com> #9
Hello
Description
Starting with AGP 8.3 a baselineProfiles directory is created in the build output folder (/build/outputs/apk/<variant>/baselineProfiles) during the assemble task. It seems this folder was introduced with this commit (
However, because of this new folder the ApkZipPackagingTask (
> A failure occurred while executing com.android.build.gradle.internal.tasks.ApkZipPackagingTask$ApkZipPackagingRunnable
> Is a directory
This error is caused by the new baselineProfiles directory.