diff --git a/android/build.gradle b/android/build.gradle index cbd62e9ea4..bf8b35a5b6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -119,7 +119,6 @@ android { buildConfigField "int", "REACT_NATIVE_MINOR_VERSION", REACT_NATIVE_MINOR_VERSION.toString() if (isNewArchitectureEnabled()) { - var appProject = rootProject.allprojects.find {it.plugins.hasPlugin('com.android.application')} externalNativeBuild { cmake { cppFlags "-O2", "-frtti", "-fexceptions", "-Wall", "-Werror", "-std=c++20", "-DANDROID" @@ -187,7 +186,7 @@ android { } if (isGHExampleApp()) { - tasks.withType(ExternalNativeBuildJsonTask) { + tasks.withType(ExternalNativeBuildJsonTask).configureEach { compileTask -> compileTask.doLast { def rootDir = new File("${project.projectDir}/..")