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

Android app not compiled after installing @stripe/stripe-terminal-react-native #876

Closed
ZakaMohyudDin opened this issue Jan 17, 2025 · 5 comments

Comments

@ZakaMohyudDin
Copy link

ZakaMohyudDin commented Jan 17, 2025

App not compiled on android side when i install version greater than 0.0.1-beta.11 of @stripe/stripe-terminal-react-native

I am using following version of react native and @stripe/stripe-terminal-react-native

"@stripe/stripe-react-native": "^0.30.0",
"@stripe/stripe-terminal-react-native": "^0.0.1-beta.23",
"react-native": "0.67.5",

and showing following error on terminal

* What went wrong:
Execution failed for task ':app:mapDebugSourceSetPaths'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find any matches for com.facebook.react:react-android:+ as no versions of com.facebook.react:react-android are available.
     Searched in the following locations:
       - file:/Users/awaisahmed/Documents/Socketier/mobile-app/node_modules/react-native/android/com/facebook/react/react-android/maven-metadata.xml
       - file:/Users/awaisahmed/Documents/Socketier/mobile-app/node_modules/jsc-android/dist/com/facebook/react/react-android/maven-metadata.xml
       - https://dl.google.com/dl/android/maven2/com/facebook/react/react-android/maven-metadata.xml
       - https://www.jitpack.io/com/facebook/react/react-android/maven-metadata.xml
     Required by:
         project :app > project :stripe_stripe-terminal-react-native
Image
@brijenTechtic
Copy link

To upgrade your project from React Native version 0.67.5 to 0.76.5, follow these steps:

  1. Update the React Native version of your project.
  2. In the build.gradle file, change the minSdkVersion from 24 to 26.
  3. Downgrade the Stripe library version to "@stripe/@stripe/stripe-terminal-react-native": "^0.0.1-beta.19".

I have made these changes, and it is working fine on my system.

@ZakaMohyudDin
Copy link
Author

To upgrade your project from React Native version 0.67.5 to 0.76.5, follow these steps:

  1. Update the React Native version of your project.
  2. In the build.gradle file, change the minSdkVersion from 24 to 26.
  3. Downgrade the Stripe library version to "@stripe/@stripe/stripe-terminal-react-native": "^0.0.1-beta.19".

I have made these changes, and it is working fine on my system.

@brijenTechtic, First of all, thank you for guiding me.
Is it necessary to upgrade my project from React Native version 0.67.5 to 0.76.5?

@brijenTechtic
Copy link

Yes, it's necessary. I have tried many times without upgrading the React Native version, but I can't find any solution.

@ZakaMohyudDin
Copy link
Author

Yes, it's necessary. I have tried many times without upgrading the React Native version, but I can't find any solution.

Okay, thank you @brijenTechtic, I'll try this workaround.

@dmatthews-stripe
Copy link
Collaborator

@ZakaMohyudDin we have plans to update our RN version in a future release, we will close this issue for now.

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

3 participants