From c00ede29783f5bc6f3b96045ae5ed19ffce0aa67 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Mon, 4 Feb 2019 10:55:57 -0800 Subject: [PATCH] Fix Android build error. The latest version of Android Studio fails with: Could not find com.android.tools.build:aapt2 To use AAPT2, we must now have a dependency on the `google()` repo in both places in the root build.gradle file, as per: https://developer.android.com/studio/releases/#aapt2_gmaven --- android/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 45ae3812..ffe77955 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,7 +6,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.3' + classpath 'com.android.tools.build:gradle:3.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -14,6 +14,7 @@ buildscript { allprojects { repositories { + google() jcenter() } } \ No newline at end of file