Execution failed for task ':app:preDebugBuild'
See original GitHub issueI have downloaded the example code from this repo, deleted ios
folder to mitigate ios
package linking specific error (on Windows), and then I could successfully use react-native link react-native-razorpay
. In android/app/build.gradle
, this sets implementation project(':react-native-razorpay')
, while docs say to do compile project(':react-native-razorpay')
in manual steps.
Issue: On running react-native run-android
I am getting following error threads, which I could not fix myself. I did try a day worth of combinations. I am getting the same thing irrespective of using the example folder (with deleted ios
folder) or creating a new one with react-native init ...
. Both are behaving the same as reported below. I tried both of these following changes in build.gradle
in both types of projects. Errors are:
With implementation project(':react-native-razorpay')
:
> Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.facebook.fresco:imagepipeline-base:1.10.0' is set to compileOnly/provided which is not supported
With compile project(':react-native-razorpay')
:
> Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.facebook.react:react-native' has different version for the compile (0.58.3) and runtime (0.20.1) classpath. You should manually set the same version via DependencyResolution
Note: I had to change minSDK
version from 16 to 19 to match with react-native-razorpay
if that matters.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
It is functional if you follow manual steps as i have pointed out https://medium.com/@sachin.r.r/using-razorpay-in-react-native-sample-3dea020de6a5
The automatic steps did not work. The manual steps need a bit more of documentation to be clear how to follow. https://medium.com/@sachin.r.r/using-razorpay-in-react-native-sample-3dea020de6a5