gradle
8.5

# CapabilityResolutionDetails

interface CapabilityResolutionDetails(source)

Gives access to the resolution details of a single capability conflict. This class may be used to resolve a capability conflict by either selecting explicitly one of the candidates, or selecting the one with the highest version of the capability.

## Functions

because
Link copied to clipboard
abstract fun because(reason: String): CapabilityResolutionDetails
Describes why a particular candidate is selected.
getCandidates
Link copied to clipboard
abstract fun getCandidates(): List<ComponentVariantIdentifier>
Returns the list of components which are in conflict on this capability
getCapability
Link copied to clipboard
abstract fun getCapability(): Capability
Returns the capability in conflict
select
Link copied to clipboard
abstract fun select(notation: Any): CapabilityResolutionDetails
abstract fun select(candidate: ComponentVariantIdentifier): CapabilityResolutionDetails
Selects a particular candidate to solve the conflict.
selectHighestVersion
Link copied to clipboard
abstract fun selectHighestVersion(): CapabilityResolutionDetails
Automatically selects the candidate module which has the highest version of the capability.