For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getAttemptedSelector

@Nullable
abstract fun getAttemptedSelector(): @Nullable ComponentSelector(source)

Returns the coordinates of the artifact that Gradle was not able to resolve.

Returns null for resolved dependencies (i.e. when isResolved returns true).

If the target Gradle version is older than 6.7 then this method will always return null.

Since

6.7