Closed miguelglz closed 6 years ago
@miguelglz I'm having the similar problem. Did you manage to resolve this? Only when trying to compile release build then I have this problem, nothing wrong when I am making debug build.
@zhenghow93 sorry for the late answer, I hope you already figured out. But for any future reference, what I did was update the build.gradle from the braintree xplat library. Then other libraries showed the same error so I had to manually update the build.gradle file of each library.
This only solved my problem temporary as it will be overwritten if I delete my node_modules folder and run npm install. Or if somebody else clones the project. But at least I was able to build the release apk.
@miguelglz hi thanks for the reply. In case others may encounter the similar problem, I'll just leave my solution here. What I did was to change the build.gradle of the library in the node_modules to use one version older than the latest braintree sdk. Probably the latest sdk is not compatible with the version of react native that I'm using (0.46.4).
@zhenghow93 Thank you, it helped me with the same error on another dependency.
I'm following the instructions from the official react native website, but can't get pass the
$ ./gradlew assembleRelease
step. I fixed some errors but now I get the following when running the command with --info :If I run the app directly on debug by executing
react-native run-android
works fine.