Skip to content

Commit 17bbcde

Browse files
authored
Fix react-android not found error on android (#2568)
I have a Project on `"react-native": "0.72.3"`. When building for android I get the following error: ``` Could not determine the dependencies of task ':react-native-gesture-handler:compileDebugAidl'. > Could not resolve all task dependencies for configuration ':react-native-gesture-handler:debugCompileClasspath'. > Could not find com.facebook.react:react-android:. Required by: project :react-native-gesture-handler ``` With my change it works. I did not investigate this far, but as I understand from [this comment](callstack/react-native-builder-bob#353 (comment)) the dependency will automatically be corrected in the respective react-native versions (?)
1 parent 16a266e commit 17bbcde

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

android/build.gradle

+2-6
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,8 @@ android {
256256
def kotlin_version = safeExtGet('kotlinVersion', project.properties['RNGH_kotlinVersion'])
257257

258258
dependencies {
259-
//noinspection GradleDynamicVersion
260-
if (REACT_NATIVE_MINOR_VERSION >= 71) {
261-
implementation "com.facebook.react:react-android" // version substituted by RNGP
262-
} else {
263-
implementation 'com.facebook.react:react-native:+' // from node_modules
264-
}
259+
implementation 'com.facebook.react:react-native:+' // from node_modules
260+
265261

266262
if (shouldUseCommonInterfaceFromReanimated()) {
267263
// Include Reanimated as dependency to load the common interface

0 commit comments

Comments
 (0)