Setup/Build failed with react-native 0.60. and androidx
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
jetifierin 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.
I'd merge in a good PR if you send in one. Cheers!
On Mon, Aug 19, 2019, 2:05 PM misteryomi [email protected] wrote:
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.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tolu360/react-native-paystack/issues/33?email_source=notifications&email_token=AA53YZQG26XKCUMDPLZRMJ3QFKK77A5CNFSM4IEQCCV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4S3J6Y#issuecomment-522564859, or mute the thread https://github.com/notifications/unsubscribe-auth/AA53YZSPNTSCUBODXMW7SM3QFKK77ANCNFSM4IEQCCVQ .
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.
Hold off a little, I am pushing an update in a few hours (today). Cheers!
On 17 Jul 2019, at 1:57 PM, peterchibunna [email protected] wrote:
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 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tolu360/react-native-paystack/issues/33?email_source=notifications&email_token=AA53YZRWRQTOLLNBSKFS3RLP74JMFA5CNFSM4IEQCCV2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7XCZCQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AA53YZVGJXGEI5QDOSCGGJTP74JMFANCNFSM4IEQCCVQ.
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 androidfollowed by./gradlew clean npm install react-native-paystackoryarn 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!