From 6da504c9999b471bef478a38ab01f76142a0d81c Mon Sep 17 00:00:00 2001 From: NerdNumber9 Date: Sun, 14 Apr 2019 12:12:46 -0400 Subject: [PATCH] Fix crash introduced when upgrading support library --- app/build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 6498df2f0..7a106630c 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -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'