From d7a7528114fb2507d8be2675693e845d385579c8 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Wed, 24 Jan 2018 08:37:53 -0500 Subject: [PATCH] Workaround install crash on Android 5 and below The aapt2 tool, new to Android Studio 3, creates an APK which fails to install on Android 5 and below if it contains the following bug: https://issuetracker.google.com/issues/64434571 Build tools 27.0.1 has a mitigation. Avoiding aapt2 also avoids hitting the bug. --- gradle.properties | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 1d3591c8a..2b0e3c8e4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,4 +15,9 @@ # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true \ No newline at end of file +# org.gradle.parallel=true + +# The aapt2 tool creates an APK which fails to install on Android 5 and below if it contains +# a bug. Build tools 27.0.1 has a mitigation. Avoiding aapt2 also avoids hitting the bug. +# See: https://issuetracker.google.com/issues/64434571 +android.enableAapt2=false