getAttemptedSelector

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