question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
K-Leoncommented, Jun 27, 2016

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.

2reactions
emmajamcommented, Mar 13, 2017

rm -rf ./buckd also worked for me 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found