I have a project build on react-native version 0.55.4
. It was woking fine on old system. I have to change system due to some reasons. I setup on new system, I am able to run project using react-native run-android but when building a signed APK using ./gradlew assembleRelease I am receiving following error.
Task :app:processReleaseGoogleServicesParsing json file:<Project-Directory>/android/app/google-services.jsonFAILURE: Build failed with an exception.What went wrong:Could not list contents of'<Project-Directory>/node_modules/react-native/scripts/third-party/glog-0.3.4/test-driver'. Couldn't follow symbolic link.
I know this issue is already on stack overflow Invalid symlink in node_modules error when trying to deploy to simulator (RN 0.45). I have tried it. I have also tried following github question.
- https://github.com/facebook/react-native/issues/11212
- https://github.com/facebook/react-native/issues/14417
- https://github.com/facebook/react-native/issues/14548
- https://github.com/facebook/react-native/issues/14464
I have also tried following things.
- Deleting node modules and reinstalling them
- Deleting
.bin
folder in node modules - Deleting
react-native/third_party
folder in node modules. - Copying node modules from older system.
- Copying
third-party
andglog-0.3.4
from older system. - Deleting
test-driver
file insidethird-party
folder. - Unlinking
test-driver
file inside third-party folder. - Installing
automake-1.16
and creating a new alias oftest-driver
file insidethird-party
folder.
My java version is 1.8.0_201. My android studio version is 3.3.2. Projects react native version is 0.55.4. My mac os version is 10.14.4. My x code version is 10.2.
Please help.Thanks in advance.