Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
peterchibunna opened this issue Jul 17, 2019 · 9 comments
Open

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

peterchibunna opened this issue Jul 17, 2019 · 9 comments

Comments

@peterchibunna
Copy link

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
@dagenius007
Copy link

Same issue

@tolu360
Copy link
Owner

tolu360 commented Jul 25, 2019

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!

@peterchibunna
Copy link
Author

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.

@misteryomi
Copy link

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.

@tolu360
Copy link
Owner

tolu360 commented Aug 19, 2019 via email

@abdulsamadola
Copy link

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

@peterchibunna
Copy link
Author

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

@tolu360
Copy link
Owner

tolu360 commented Sep 4, 2019 via email

@tolu360
Copy link
Owner

tolu360 commented Sep 4, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants