The DependencyResolveDetails is hightlight in red in my app gradle file. My android studio is 3.3, how to solve this warning.
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
And the warning message is :
Cannot resolve symbol 'DependencyResolveDetails'
just delete 'DependencyResolveDetails' :
configurations.all { //fix ClassNotFoundException : OnUnhandledKeyEventListener
resolutionStrategy.eachDependency { details ->
def requested = details.requested
if (requested.group == "com.android.support") {
if (!requested.name.startsWith("multidex")) {
details.useVersion "26.+"
}
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With