Setup/Build failed with react-native 0.60. and androidx
peterchibunna opened this issue ยท 9 comments
I'm stuck because I'm using react-native 0.60. Error is below:
* What went wrong:
Could not determine the dependencies of task ':react-native-paystack:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-paystack:debugCompileClasspath'.
> Could not resolve androidx.appcompat:appcompat:{strictly 1.0.0}.
Required by:
project :react-native-paystack
> Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints:
Dependency path 'project1:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2'
Constraint path 'project1:react-native-paystack:unspecified' --> 'androidx.appcompat:appcompat:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Same issue
Hold off on moving to 0.60.* just yet or look into using jetifier
in the meantime, if you must use 0.60.*. I would update the library shortly, cheers!
Hi @tolu360, using jetifier results in the same error. I noticed that react-native 0.60 uses jetifier automatically (at least in my own scenario). I think it's the library that is breaking. Thanks as you continue to make us smile.
Hold off on moving to 0.60.* just yet or look into using
jetifier
in the meantime, if you must use 0.60.*. I would update the library shortly, cheers!
We're still waiting. We'd appreciate a quick update.
Am also facing the same issue on react-native 0.60
Waiting for the update. Thanks a lot
@tolu360 can you point me in the right direction. I think the fix is in a related library hosted somewhere. If you can direct us to the appropriate channel, we'd appreciate.
Hi All,
Suggested update path should follow the following steps:
npm/yarn remove react-native-paystack
- Go give the README a read again, new instructions have been added that you should totally be aware of, to know how to proceed. !Important
- Understand how auto-linking works in RN 0.59 and below as against how it works in RN 0.60 (essentially no linking is required on RN 60 and above) - follow whichever applies to your app.
- Clean your project on Android, run
cd android
followed by./gradlew clean
npm install react-native-paystack
oryarn add react-native-paystack
- Build your app and profit.
- The latest release is 3.4.0 and tested and works in RN 60. and below*!
Cheers!