Could not list contents of `/path/to/project/.buckd/sock` when generating signed apk
See original GitHub issue- Provide a minimal code snippet / rnplay example that reproduces the bug. Only when I was generating signed apk.
- Provide screenshots where appropriate
When executing ./gradlew assembleRelease
:
...
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:bundleReleaseJsAndAssets
FAILURE: Build failed with an exception.
* What went wrong:
Could not list contents of '/Users/wildcat/WebstormProjects/queshu/.buckd/sock'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
With --debug
:
...
22:19:46.365 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory ] Resolved configuration cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
22:19:46.365 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory ] Deleted 2 resolution results binary files in 0.002 secs
22:19:46.365 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
22:19:46.623 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder ] Dispatching close input message: CloseInput[id=8f55d3bc-926c-4bc3-b50c-023086203b88.2]
22:19:46.623 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection]thread 11: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
22:19:46.624 [INFO] [org.gradle.launcher.daemon.client.DaemonClient] Received result CommandFailure[value=org.gradle.launcher.exec.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Could not list contents of '/Users/wildcat/WebstormProjects/queshu/.buckd/sock'.] from daemon DaemonInfo{pid=42671, address=[b889bab8-f701-4b94-9282-b08c1c4e171a port:55820, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], idle=true, context=DefaultDaemonContext[uid=b59af716-c9d2-453b-97fc-0401a12e14eb,javaHome=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home,daemonRegistryDir=/Users/wildcat/.gradle/daemon,pid=42671,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]}.
22:19:46.625 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection]thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
22:19:46.626 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection]thread 1: connection stop
- What’s the version of React Native you’re using? 0.28.0
- Does this occur on iOS, Android or both? Only Android
- Are you using Mac, Linux or Windows? Mac OS X 10.11
- Additional Info:
When I execute
buck
in my project direction:
➜ queshu git:(master) ✗ buck
BUILD FAILED: Failed to read NDK version from /Users/wildcat/Library/Android/android-ndk-r11c
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Gradle error when generating signed APK in Android Studio
1" to the dependencies section, but that has not worked. Execution failed for task ':app:lintVitalRelease'. > Could not resolve all files for ...
Read more >Sign your app - Android Developers
If you do not use Android Studio or would rather sign your app from the command line, ... In the menu bar, click...
Read more >Publishing to Google Play Store - React Native
This guide works with any React Native app to automate the deployment process. Generating an upload key. You can generate a private signing...
Read more >Making a signed APK for your React Native application..
For creating a signing key, you can use keytool . If you are on Windows, keytool can be found at C:\Program Files\Java\jdkx.x.x_x\bin ....
Read more >Generating Signed APK · React Native - GitHub Pages
This guide covers the process in brief, as well as lists the steps required to packaging the JavaScript bundle. Generating a signing key....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same issue… Just delete lock file and buildings works. I think we need there some kind of filter to ignore lock files. I’ll look into it tomorrow.
rm -rf ./buckd
also worked for me 👍