stripe / stripe-react-native

React Native library for Stripe.
https://stripe.dev/stripe-react-native
MIT License
1.27k stars 264 forks source link

Android Build Failing #741

Closed yg-yash closed 2 years ago

yg-yash commented 2 years ago

Describe the bug AILURE: Build failed with an exception.

BUILD FAILED in 1m 29s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8083 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Note: D:\vscode\H\myapp_app\node_modules\@react-native-async-storage\async-storage\android\src\main\java\com\reactnativecommunity\asyncstorage\AsyncStorageModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: D:\vscode\H\myapp_app\node_modules\@react-native-async-storage\async-storage\android\src\main\java\com\reactnativecommunity\asyncstorage\AsyncStoragePackage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: D:\vscode\H\myapp_app\node_modules\react-native-camera\android\src\main\java\com\google\android\cameraview\Camera2.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

BUILD FAILED in 1m 29s

at makeError (D:\vscode\H\myapp_app\node_modules\execa\index.js:174:9)
at D:\vscode\H\myapp_app\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\vscode\H\myapp_app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
at async Command.handleAction (D:\vscode\H\myapp_app\node_modules\@react-native-community\cli\build\index.js:186:9)

info Run CLI with --verbose flag for more details.

To Reproduce Steps to reproduce the behavior: 1.yarn add @stripe/stripe-react-native

  1. npx react-native run-android
  2. Build failing
  3. See error

Expected behavior The app should get build

Desktop (please complete the following information):

charliecruzan-stripe commented 2 years ago

Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8083

Not sure about this error, but it doesn't seem to be pointing to stripe-react-native (here's another instance of this error). How have you narrowed it down to stripe-react-native as the source of the error?

charliecruzan-stripe commented 2 years ago

closing as dup of https://github.com/stripe/stripe-react-native/issues/732