Skip to content

Commit 06e31c7

Browse files
dulmandakhfacebook-github-bot
authored andcommitted
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 5923ee5 commit 06e31c7

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
@@ -220,7 +220,7 @@ dependencies {
220220
// Run this once to be able to run the application with BUCK
221221
// puts all compile dependencies into folder libs for BUCK to use
222222
task copyDownloadableDepsToLibs(type: Copy) {
223-
from configurations.compile
223+
from configurations.implementation
224224
into 'libs'
225225
}
226226

0 commit comments

Comments
 (0)