From b34d76482962da83994616cd8ce562e03c750482 Mon Sep 17 00:00:00 2001 From: Chris Mark Date: Thu, 1 Aug 2019 19:08:25 -0400 Subject: [PATCH] Fix breaking change w/ Gradle dependencies (#88) This fixes a breaking API change with the Android Gradle plugin, which was deprecated as of version 3.0.0 and later made obsolete. When adding Gradle dependencies, the `compile` command has been removed and replaced with `implementation`/`api`. More information: https://docs.gradle.org/5.4.1/userguide/java_library_plugin.html#sec:java_library_separation https://developer.android.com/studio/build/dependencies?utm_source=android-studio#dependency_configurations --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 1a8d75f9..8a2effa9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -32,7 +32,7 @@ android { dependencies { def supportLibVersion = project.hasProperty('supportLibVersion') ? project.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION - compile fileTree(dir: 'libs', include: ['*.jar']) - compile "com.android.support:appcompat-v7:$supportLibVersion" - compile 'com.facebook.react:react-native:+' + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation "com.android.support:appcompat-v7:$supportLibVersion" + implementation 'com.facebook.react:react-native:+' }