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 Error : Missing annotations Stripe React Native @Input #1407

Closed
aslamanver opened this issue May 31, 2023 · 1 comment
Closed

Android Error : Missing annotations Stripe React Native @Input #1407

aslamanver opened this issue May 31, 2023 · 1 comment

Comments

@aslamanver
Copy link

The Android builds in the Nx project are failing due to an error related to annotations when attempting to install the stripe/react-native package.

However, this issue does not arise when installing the package on a new project using the react-native CLI.

Task :stripe_stripe-react-native:packageDebugResources FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
58 actionable tasks: 2 executed, 56 up-to-date
ERROR:/Users/esfxra/monorepo/apps/test-app/node_modules/@stripe/stripe-react-native/android/src/main/res/layout/googlepay_button_dark.xml: Resource and asset merger: /Users/esfxra/monorepo/apps/test-app/node_modules/@stripe/stripe-react-native/android/src/main/res/layout/googlepay_button_dark.xml is not annotated as @Input
java.lang.IllegalStateException: /Users/esfxra/monorepo/apps/test-app/node_modules/@stripe/stripe-react-native/android/src/main/res/layout/googlepay_button_dark.xml is not annotated as @Input
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':stripe_stripe-react-native:packageDebugResources'.
>! > /Users/esfxra/monorepo/apps/test-app/node_modules/@stripe/stripe-react-native/android/src/main/res/layout/googlepay_button_dark.xml: Error: is not annotated as @Input

Steps to reproduce the behavior:

  • Run npm install @stripe/stripe-react-native
  • Integrate the {...} component
  • Run npx nx run wifi-app:run-android
  • See error
@charliecruzan-stripe
Copy link
Collaborator

Closing as a duplicate of #1078

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

2 participants