作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
DependencyResolveDetails 在我的应用程序 gradle 文件中以红色突出显示。我的android studio是3.3的,怎么解决这个警告。
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'
}
}
}
}
警告信息是:
Cannot resolve symbol 'DependencyResolveDetails'
最佳答案
只需删除“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.+"
}
}
}
}
关于android - 为什么 DependencyResolveDetails 以红色突出显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54665874/
有没有一种方法可以“标记”对象的属性,使它们在反射中“突出”? 例如: class A { int aa, b; string s1, s2; public int AA
我是一名优秀的程序员,十分优秀!