Skip to content

Commit 8b430e0

Browse files
dulmandakhkelset
authored andcommittedAug 19, 2021
fix AGP 7 compatibility (#32030)
Summary: Android Gradle Plugin 7 removed dependency configurations, and it includes compile. Below is a snipped from release notes https://developer.android.com/studio/releases/gradle-plugin I can confirm that RN 0.65.0 app is running as expected on Android with the patch. > **compile** Depending on use case, this has been replaced by api or implementation. Also applies to *Compile variants, for example: debugCompile. ## Changelog [Android] [Changed] - Android Gradle Plugin 7 compatibility Pull Request resolved: #32030 Test Plan: Create a project with RN 0.65.0 and upgrade Android Gradle Plugin to 7.0.0, and Gradle to 7.0.2. It'll fail to sync. Then apply the change, and it'll sync as normal, and build the app. Reviewed By: passy, ShikaSD Differential Revision: D30394238 Pulled By: cortinico fbshipit-source-id: cabc25754b9cd176a7d6c119d009728f2e5a93d9
1 parent 2209bb7 commit 8b430e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎template/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ dependencies {
210210
// Run this once to be able to run the application with BUCK
211211
// puts all compile dependencies into folder libs for BUCK to use
212212
task copyDownloadableDepsToLibs(type: Copy) {
213-
from configurations.compile
213+
from configurations.implementation
214214
into 'libs'
215215
}
216216

0 commit comments

Comments
 (0)
Please sign in to comment.