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
.binfolder in node modules - Deleting
react-native/third_partyfolder in node modules. - Copying node modules from older system.
- Copying
third-partyandglog-0.3.4from older system. - Deleting
test-driverfile insidethird-partyfolder. - Unlinking
test-driverfile inside third-party folder. - Installing
automake-1.16and creating a new alias oftest-driverfile insidethird-partyfolder.
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.