installation -> npm intsall react-native-truecaller --save | |
linking -> react-native link react-native-truecaller | |
and on running react-native run-android | |
we get the following error which points to react-native-truecaller | |
``` | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/ayushbansal/Sites/cybertron/cybertron-starscream/node_modules/react-native-truecaller/android/build.gradle' line: 5 | |
* What went wrong: | |
A problem occurred evaluating project ':react-native-truecaller'. | |
> Could not find method google() for arguments [] on repository container. | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
``` | |
npm install react-native-truecaller installs package with a redundant SDK for android i.e 0.6 while https://github.com/truecaller/react-native-sdk here mentions 0.7 | |
if i download truecaller-react-native-wrapper.zip from https://github.com/truecaller/react-native-sdk. there is some zip inside a zip | |
After unlinking and removing previous react-native-truecaller from node-modules and installing from https://www.dropbox.com/s/57mkpno7dz20s44/react-native-truecaller.zip?dl=0 MANUALLY | |
react-native-truecaller downloaded and MANUALLY copied in node_modules has 0.7aar | |
react-native link react-native-truecaller links successfully without any error | |
on react-native run-android we get | |
``` | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/ayushbansal/Sites/cybertron/cybertron-starscream/node_modules/react-native-truecaller/android/build.gradle' line: 5 | |
* What went wrong: | |
A problem occurred evaluating project ':react-native-truecaller'. | |
> Could not find method google() for arguments [] on repository container. | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment