Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why DependencyResolveDetails is highlight in red

Tags:

android

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' 
like image 656
JohnRambo Avatar asked Feb 13 '19 08:02

JohnRambo


Video Answer


1 Answers

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.+"
            }
        }
    }
}
like image 78
Kyle Avatar answered Oct 26 '22 16:10

Kyle