Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.67~0.69. Could not create service of type FileHasher using BuildSessionServices.createFileHasher(). #34257

Closed
wangyupeng993 opened this issue Jul 23, 2022 · 2 comments

Comments

@wangyupeng993
Copy link

Description

  • What went wrong:
    Gradle could not start your build.

Could not create service of type FileHasher using BuildSessionServices.createFileHasher().
Timeout waiting to lock file hash cache (/Volumes/HPP500/project/ReactNative/Cmpanda/android/.gradle/7.3.3/fileHashes). It is currently in use by this Gradle process.Owner Operation: unknown
Our operation:
Lock file: /Volumes/HPP500/project/ReactNative/Cmpanda/android/.gradle/7.3.3/fileHashes/fileHashes.lock

Version

ex. 0.69.2

Output of npx react-native info

System:
OS: macOS 12.4
CPU: (8) x64 Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
Memory: 56.42 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.1 - /usr/local/bin/node
Yarn: Not Found
npm: 8.1.2 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

npm run android

Snack, code example, screenshot, or link to a repository

image

image

@cortinico
Copy link
Contributor

Essentially a duplicate of #34258

Consider deleting the mentioned file by Gradle and build again

@hemanthAppmaker
Copy link

Gradle could not start your build.

Could not create service of type FileHasher using BuildSessionServices.createFileHasher().
Cannot lock file hash cache (/Users/eps95-hemanth/Desktop/mobileapps/epixel-commerce/android/.gradle/6.7/fileHashes) as it has already been locked by this process.

FIX:
stop the gradle

./gradlew --stop
Stopping Daemon(s)
1 Daemon stopped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants