Scenario
When creating an Android release APK, the error Could not list contents of '/Users/user/project/node_modules/react-native/third-party/glog-0.3.4/test-driver'
is encountered which causes the build to fail.
Steps to Reproduce
npm i [email protected] --save
cd android && ./gradlew assembleRelease && ./gradlew installRelease
There is a folder named third-party-podspecs
that contains the GLog.podspec
. This probably gets expanded into another folder, third-party
on build. Inside of this, there is a file under glog-0.3.4/test-driver
which appears to be an alias that does not resolve.
There is a temporary fix which is to delete the third-party
folder. Please can we look at getting this one corrected?
also having this issue
I'm also having this issue.
This worked for me: delete the broken test-driver-link as follows
unlink node_modules/react-native/third-party/glog-0.3.4/test-driver
Same issue over here, fix by @itinance works 馃敟
In addition to unlinking, I also had to remove third-party/glog-0.3.4
in the project root.
I'm using RN 0.46.1 and Yarn.
With RN 0.46.3, @itinance solution worked for me.
This issue occurs in 0.46.3 only if you do an android build after you do an iOS build. That link gets created during the iOS build. If you do an android build after a fresh npm install, it's fine.
It's ironic that I ran into this issue after I upgraded after https://github.com/facebook/react-native/issues/14382 was fixed in 0.46.3
This is fixed in master branch. Guess we need to wait for 0.47.0
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
issue does happen, I deleted the folder third_party and it worked...
I have this issue with XCode too which running ios-install-glog solves
After unlink, I ran the command and get stuck at :app:bundleReleaseJsAndAssets
#10078
I am also experiencing this issue.
tried cleaning with
yarn run clean
rm -rf node_modules
yarn install
rm -rf android/.gradle
rm -rf android/build
rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache verify
rm -rf $TMPDIR/haste-map-react-native-packager-*
But still getting Could not list contents of '/Users/.../sammenholdetapp/third-party/glog-0.3.4/test-driver'. Couldn't follow symbolic link.
did unlink third-party/glog-0.3.4/test-driver
and that seemed to work
We're on react-native 0.55.3 and get this for release build Android, so I don't understand why it's closed.
We have no node_modules/react-native/third-party
folder, as seen in screenshot.
gradlew assembleRelease -s
FAILURE: Build failed with an exception.
What went wrong:
Failed to capture snapshot of input files for task ':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check.Could not list contents of '/Users/thomas/Source/ParkeraApp.React/mobile/third-party/glog-0.3.4/test-driver'. Couldn't follow symbolic link.
Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.Exception is:
org.gradle.api.UncheckedIOException: Failed to capture snapshot of input files for task ':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check.
Most helpful comment
This worked for me: delete the broken test-driver-link as follows
unlink node_modules/react-native/third-party/glog-0.3.4/test-driver