Status Update
Comments
ac...@google.com <ac...@google.com>
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #3
Android Gradle Plugin: 8.7.1
Could you try the latest canary, AGP 8.8.0-alpha09
?
an...@gmail.com <an...@gmail.com> #4
I just updated to Android Gradle Plugin: 8.7.2 and the bug is fixed.
an...@google.com <an...@google.com> #5
I spoke too soon. The bug appears gone when I use a different computer, but that is only because the lint check is disabled on it. The computer with the false positive is a new cloning of my github project which apparently has the lint check enabled. The AGP 8.8.0-alpha09 plugin will not work on ladybug, and I'm too busy to switch to a canary build of android studio just to fix a false positive lint check, sorry.
lu...@gmail.com <lu...@gmail.com> #6
I just tried running lint on two more of my computers, one which also has a fresh clone of the github project, and one which has an "ancient" (but up to date) clone of the project -- the two computers have very different Settings -> Editor -> Inspections choices. The old clones do not have this lint check anywhere in their choices, whereas new clones do. Very odd indeed. (I have .idea/ in my .gitignore BTW).
Description
DESCRIBE THE ISSUE IN DETAIL:
When using the older
android.ndkDirectory
API that eagerly evaluates the value, it evaluates to the proper directory path. However, when using theandroidComponents.sdkProvider.ndkDirectory
provider, gradle fails withCannot query the value of this provider because it has no value available.
.This seems to only affect
ndkDirectory
. Other things, likesdkDirectory
work fine.STEPS TO REPRODUCE:
./gradlew printEager
. It should successfully print the SDK and NDK paths../gradlew printLazy
. It should successfully print the SDK path, but crash when attempting to print the NDK path.ATTACH LOG FILES
(Attached outputs of gradle commands)