luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
75 stars 16 forks source link

[BUG] Error when running build for Android #29

Closed techmarajo closed 2 months ago

techmarajo commented 2 months ago

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: image

Smartphone (please complete the following information):

luicfrr commented 2 months ago

Thanks man, I really apretiate your help. I think this is also related to #23

luicfrr commented 2 months ago

Please test new 1.4.2 version and give me a feedback about it