react-native-paystack icon indicating copy to clipboard operation
react-native-paystack copied to clipboard

Setup/Build failed with react-native 0.60. and androidx

Open peterchibunna opened this issue 6 years ago • 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

peterchibunna avatar Jul 17 '19 12:07 peterchibunna

Same issue

dagenius007 avatar Jul 25 '19 14:07 dagenius007

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!

tolu360 avatar Jul 25 '19 16:07 tolu360

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.

peterchibunna avatar Jul 27 '19 16:07 peterchibunna

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.

misteryomi avatar Aug 19 '19 13:08 misteryomi

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 .

tolu360 avatar Aug 19 '19 14:08 tolu360

Am also facing the same issue on react-native 0.60 Waiting for the update. Thanks a lot

abdulsamadola avatar Sep 02 '19 07:09 abdulsamadola

@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.

peterchibunna avatar Sep 04 '19 12:09 peterchibunna

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.

tolu360 avatar Sep 04 '19 12:09 tolu360

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 or yarn 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!

tolu360 avatar Sep 04 '19 18:09 tolu360