FAILURE: Build failed with an exception.
Where: Build file 'D:\AndroidApps\SenFinApp\node_modules\react-native-device-info\andro id\build.gradle' line: 29
What went wrong: A problem occurred evaluating project ':react-native-device-info'.
Could not find method implementation() for arguments [com.facebook.react:react -native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies. DefaultDependencyHandler.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.084 secs
D:\AndroidApps\SenFinApp\android>
I tried to get deviceId using react-native-device-info in react native.then I got below error. use React-native version "react-native": "0.48.3",
in line 29
implementation 'com.facebook.react:react-native:+'
I follow the instructions of below link:
https://github.com/rebeccahughes/react-native-device-info
please help me
Thanks.