Fix crash introduced when upgrading support library

This commit is contained in:
NerdNumber9 2019-04-14 12:12:46 -04:00
parent 23c1827838
commit 6da504c999

View File

@ -33,6 +33,18 @@ ext {
}
}
// Fix for: https://stackoverflow.com/questions/51185566/application-running-on-avd-for-api-28-but-not-api-24
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == "com.android.support") {
if (!requested.name.startsWith("multidex")) {
details.useVersion "26.+"
}
}
}
}
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'