Describe the bug
When running the Android build, an error generated by Gradle occurs.
Error:
FAILURE: Build failed with an exception.
Build file '\node_modules\react-native-vision-camera-face-detector\android\build.gradle' line: 5
Could not find method safeExtGet() for arguments [kotlinVersion, 1.8.10] on object of type org.gradle.api.internal.initialization.DefaultScriptHandler.
Expected behavior
From what I've been reading, the scope of the "buildscript" is limited to the block itself, so it doesn't recognize the "safeExtGet" function.
To solve the issue, it was necessary to define the "kotlinVersion" variable globally, as this way, it's still possible to use the "safeExtGet" function.
Logs and Screenshots
Modified content:
Smartphone (please complete the following information):
Describe the bug When running the Android build, an error generated by Gradle occurs.
Error: FAILURE: Build failed with an exception. Build file '\node_modules\react-native-vision-camera-face-detector\android\build.gradle' line: 5 Could not find method safeExtGet() for arguments [kotlinVersion, 1.8.10] on object of type org.gradle.api.internal.initialization.DefaultScriptHandler.
Expected behavior From what I've been reading, the scope of the "buildscript" is limited to the block itself, so it doesn't recognize the "safeExtGet" function. To solve the issue, it was necessary to define the "kotlinVersion" variable globally, as this way, it's still possible to use the "safeExtGet" function.
Logs and Screenshots Modified content:
Smartphone (please complete the following information):