Status Update
Comments
uc...@google.com <uc...@google.com>
tg...@google.com <tg...@google.com> #2
Hi Ivan, do you know why this is changed in AGP 4.0?
ga...@google.com <ga...@google.com> #3
This will be fixed in 4.2.0-alpha05.
ag/I5ac2af10ffcc8c6d53a208c6f409bc3d8371e7a7
pr...@gmail.com <pr...@gmail.com> #4
Not sure whether this is the same bug but here's the task graph for a project with NDK and dynamic feature module -
With AGP 3.6.0 (5 tasks) -
❯ ./gradlew clean --dry-run
:clean SKIPPED
:app:externalNativeBuildCleanDebug SKIPPED
:app:externalNativeBuildCleanRelease SKIPPED
:app:clean SKIPPED
:dynamicfeature:clean SKIPPED
With AGP 4.0.0 (14 tasks) -
❯ ./gradlew clean --dry-run
:clean SKIPPED
:app:generateDebugFeatureTransitiveDeps SKIPPED
:dynamicfeature:generateDebugFeatureTransitiveDeps SKIPPED
:app:checkDebugLibraries SKIPPED
:app:preBuild SKIPPED
:app:preDebugBuild SKIPPED
:app:externalNativeBuildCleanDebug SKIPPED
:app:generateReleaseFeatureTransitiveDeps SKIPPED
:dynamicfeature:generateReleaseFeatureTransitiveDeps SKIPPED
:app:checkReleaseLibraries SKIPPED
:app:preReleaseBuild SKIPPED
:app:externalNativeBuildCleanRelease SKIPPED
:app:clean SKIPPED
:dynamicfeature:clean SKIPPED
ga...@google.com <ga...@google.com> #5
This is almost certainly the same issue, can you please try with AGP 4.2.0-alpha05?
pr...@gmail.com <pr...@gmail.com> #6
I just tried with 4.2.0-alpha07 and can confirm that both the issues are resolved. Thanks!
Can you give an estimate when this fix will be released in a stable AGP version?
co...@gmail.com <co...@gmail.com> #7
Just a heads up that this is still an issue on AGP 7.0.x (and I suspect 7.1.x and beyond):
gw :app:clean --dry-run
> Configure project :app
[...]
:app:packageReactNdkDebugLibs SKIPPED
:app:preBuild SKIPPED
:app:preDebugBuild SKIPPED
:app:externalNativeBuildCleanDebug SKIPPED
:app:packageReactNdkReleaseLibs SKIPPED
:app:preReleaseBuild SKIPPED
:app:externalNativeBuildCleanRelease SKIPPED
:app:clean SKIPPED
co...@gmail.com <co...@gmail.com> #8
I've created a follow-up here:
ga...@google.com <ga...@google.com> #9
Thanks for letting us know, this has indeed regressed, sorry about that.
ga...@google.com <ga...@google.com> #10
This is now fixed (again) in ag/I95ac997fe360fafa585452e5dd53390a38bd0149.
The fix will land in 7.2.0-rc01 and 7.3.0-alpha06.
co...@gmail.com <co...@gmail.com> #11
That was fast. Thanks for doing it 👍
de...@google.com <de...@google.com> #12
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 Dolphin Canary 6 (2021.3.1.6)
- Android Gradle Plugin 7.3.0-alpha06
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!
co...@gmail.com <co...@gmail.com> #13
Hey @de...@google.com
Thanks for the heads up. Just a quick update that your colleague in
The fix will land in 7.2.0-rc01 and 7.3.0-alpha06.
While you mentioned only: Android Gradle Plugin 7.3.0-alpha06
. Which of the two is correct?
Description
On a project using NDK, with AGP 4.0.0, the task externalNativeBuildClean also runs the preBuild task.
However, till AGP 3.6.0, externalNativeBuildClean used to not depend on it and didn't run any other tasks.
This can be reproduced on one of the official NDK samples. Here's my findings when testing onhttps://github.com/android/ndk-samples/tree/master/hello-jni -
With AGP 4.0.0 -
With AGP 3.6.0 -
This seems to be a regression/bug in AGP 4.0 and has increased the time taken to clean one of my projects significantly. Would be great to know the reasoning behind this if it is intentional.
Build: AI-193.6911.18.40.6514223, 202005201507,
AI-193.6911.18.40.6514223, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.5, screens 1536x960; Retina
AS: 4.0; Kotlin plugin: 1.3.72-release-Studio4.0-5; Android Gradle Plugin: 4.0.0; Gradle: 6.5; NDK: from local.properties: 21.3.6528147, latest from SDK: 21.3.6528147; LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.10.2, from PATH: (not found)