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 fails to compile after upgrading to 0.18.1 #1134

Closed
jkepps opened this issue Sep 14, 2022 · 3 comments
Closed

Android fails to compile after upgrading to 0.18.1 #1134

jkepps opened this issue Sep 14, 2022 · 3 comments

Comments

@jkepps
Copy link

jkepps commented Sep 14, 2022

Describe the bug
I am attempting to upgrade to 0.18.1 in order to fix iOS builds failing on XCode 14 with iOS 16 and now my android app will not compile.

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

Expected behavior
The android app compiles successfully

Screenshots
Error
Screen Shot 2022-09-14 at 1 40 24 PM

Gradle file
Screen Shot 2022-09-14 at 1 43 48 PM

Desktop (please complete the following information):

  • OS: macOS 12.5.1
  • Version: 0.18.1
  • RN: 0.68.3

Additional context
stripe/stripe-ios#1973

@mballdev
Copy link

Hitting this also

@charliecruzan-stripe
Copy link
Collaborator

charliecruzan-stripe commented Sep 14, 2022

Could you try updating your kotlinVersion to 1.6.21? I'm not able to reproduce this myself, though

Also might be worth upgrading to: classpath 'com.android.tools.build:gradle:7.2.2'

@jkepps
Copy link
Author

jkepps commented Sep 14, 2022

ok i think that resolved the issue relating to stripe-react-native. I'm now running into this error, but it doesn't seem specific to this repo. seems likely to be an issue with my dev env configuration. closing the issue.

> Task :app:devCheckEnvironment 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
36 actionable tasks: 2 executed, 34 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:devCheckEnvironment' (type 'CheckEnvironment').
  - Type 'CheckEnvironment' property 'envVars' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CheckEnvironment' property 'releaseVars' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CheckEnvironment' property 'serviceVars' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CheckEnvironment' property 'verifyVarSet' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 26s

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 app:installDevDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:devCheckEnvironment' (type 'CheckEnvironment').
  - Type 'CheckEnvironment' property 'envVars' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CheckEnvironment' property 'releaseVars' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CheckEnvironment' property 'serviceVars' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CheckEnvironment' property 'verifyVarSet' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#missing_annotation for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 26s

    at makeError (/Users/jordanepps/workspace/client/node_modules/execa/index.js:174:9)
    at /Users/jordanepps/workspace/client/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/Users/jordanepps/workspace/client/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/Users/jordanepps/workspace/client/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@jkepps jkepps closed this as completed Sep 14, 2022
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