From 037f6d60130f6c27d30ff725f46cc728d53c3fa5 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 24 Oct 2018 15:15:58 -0700 Subject: [PATCH] android: Disable AAPT2 for now, to unblock release builds. This became the default with Android Gradle Plugin version 3.0.0: https://developer.android.com/studio/releases/gradle-plugin#3-0-0 So turning it off returns us to the behavior before we recently took that upgrade. Without this line, we run into this issue when attempting to make a release build: https://github.com/facebook/react-native/issues/16906 That issue was closed long ago when an intended fix was merged, but then that was reverted. The fix went back in as da6a5e043 upstream, which is in v0.57.0, so we'll get it when we take that upgrade; hopefully that then fixes this for real. --- android/gradle.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/gradle.properties b/android/gradle.properties index 89e0d99e217..1c1f134a37b 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -16,3 +16,7 @@ # 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 + +# TODO remove this after RN 0.57 upgrade. +# See https://github.com/facebook/react-native/issues/16906 . +android.enableAapt2=false