react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

🐛 Bulid failed: Configure project :react-native-gradle-plugin

Open mujehoxe opened this issue 3 years ago • 0 comments

What were you trying to do?

Want to scan qr code

Reproduceable Code

No response

What happened instead?

Build fails at about 95% after adding frame processor code and dependencies, and after fallowing the troubleshooting tutorial it doesn't even pass the configuration phase.

Relevant log output

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1039 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...

> Configure project :react-native-gradle-plugin
e: /home/o/Documents/clj/repos/react-native/node_modules/react-native-gradle-plugin/build.gradle.kts:9:19: Unresolved reference: configurationcache
e: /home/o/Documents/clj/repos/react-native/node_modules/react-native-gradle-plugin/build.gradle.kts:43:7: Unresolved reference: serviceOf

FAILURE: Build failed with an exception.

* Where:
Build file '/home/o/Documents/clj/repos/react-native/node_modules/react-native-gradle-plugin/build.gradle.kts' line: 9

* What went wrong:
Script compilation errors:

  Line 09: import org.gradle.configurationcache.extensions.serviceOf
                             ^ Unresolved reference: configurationcache

  Line 43:       serviceOf<ModuleRegistry>().getModule("gradle-tooling-api-builders").classpath.asFiles.first()
                 ^ Unresolved reference: serviceOf

2 errors

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
e: /home/o/Documents/clj/repos/react-native/node_modules/react-native-gradle-plugin/build.gradle.kts:9:19: Unresolved reference: configurationcache
e: /home/o/Documents/clj/repos/react-native/node_modules/react-native-gradle-plugin/build.gradle.kts:43:7: Unresolved reference: serviceOf

FAILURE: Build failed with an exception.

* Where:
Build file '/home/o/Documents/clj/repos/react-native/node_modules/react-native-gradle-plugin/build.gradle.kts' line: 9

* What went wrong:
Script compilation errors:

  Line 09: import org.gradle.configurationcache.extensions.serviceOf
                             ^ Unresolved reference: configurationcache

  Line 43:       serviceOf<ModuleRegistry>().getModule("gradle-tooling-api-builders").classpath.asFiles.first()
                 ^ Unresolved reference: serviceOf

2 errors

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

    at makeError (/home/o/Documents/clj/repos/react-native/node_modules/execa/index.js:174:9)
    at /home/o/Documents/clj/repos/react-native/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/home/o/Documents/clj/repos/react-native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/home/o/Documents/clj/repos/react-native/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.

Device

genymotion emulator

VisionCamera Version

2.14.1

Additional information

mujehoxe avatar Aug 14 '22 19:08 mujehoxe