Status Update
Comments
js...@google.com <js...@google.com>
je...@google.com <je...@google.com>
bi...@google.com <bi...@google.com> #2
For the isolated project issues in init script, are you talking about this part?
taskGraph.allTasks.each { task ->
if (!task.project.hasProperty(ENABLE_UTP_TEST_REPORT_PROPERTY) ||
!task.project.property(ENABLE_UTP_TEST_REPORT_PROPERTY).toString().toBoolean()) {
return
}
xxxxx
}
jf...@block.xyz <jf...@block.xyz> #3
Yes, task.project.hasProperty(ENABLE_UTP_TEST_REPORT_PROPERTY)
is the problematic call, all you really need is providers.gradleProperty(ENABLE_UTP_TEST_REPORT_PROPERTY).toString().toBoolean()
to prevent accessing other projects when the property is not found.
bi...@google.com <bi...@google.com> #4
Fixed with I804ab0a35787d94e95e4fc5ac8e8071d645697fc which should be included in Ladybug.2
an...@google.com <an...@google.com> #5
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 Ladybug Feature Drop | 2024.2.2 Canary 3
- Android Gradle Plugin 8.8.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!
dg...@oreillyauto.com <dg...@oreillyauto.com> #6
FAILURE: Build failed with an exception.
* Where:
Initialization script '/private/var/folders/y0/nrtsz1g53qq5c37yzk6s7cv80000gn/T/ijresolvers1.gradle' line: 162
* What went wrong:
No signature of method: org.gradle.api.internal.provider.DefaultProviderFactory.gradleProperty() is applicable for argument types: (String) values: [com.android.tools.utp.GradleAndroidProjectResolverExtension.enable]
Possible solutions: hasProperty(java.lang.String)
Description
In Android Studio Ladybug Canary 09, when tests are run from the IDE, the injected
ijresolvers2.gradle
init script contains multiple instances ofProject.hasProperty
added byaddGradleAndroidTestListener.gradle
fromGradleAndroidProjectResolverExtension
.Project.hasProperty
is an isolated projects violation in most cases because if the project doesn't have the requested property, Gradle searches upward through parent projects to the root.