-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Build error in react-native 0.7 #21
Comments
I had a problem in RN 0.69. |
@duylinhdang1998 Sorry for my super late reply, it's been a while since I've touched RN. Have you tried branches |
I am also facing the same issue and have tried all 3 branches:
|
@ajaysidhu Thank you for letting me know, I need to dedicate some time to investigating when I'm free. Do you have a RN sample app I can use for testing? |
I fixed it by copying your code into my android folder and export native modules. |
@jackbayliss Here is the minimal project with the issues: With default installation: https://github.com/ajaysidhu/nfc-card-reader-bug-report/tree/with-default-installationCLI output with default installationuser@MacBook-Pro nfctest % npm run android
info JS server already running. 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.5.1/userguide/command_line_interface.html#sec:command_line_warnings FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
2: Task failed with an exception.
BUILD FAILED in 2s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
2: Task failed with an exception.
BUILD FAILED in 2s
info Run CLI with --verbose flag for more details. With gradle7.0 branch: https://github.com/ajaysidhu/nfc-card-reader-bug-report/tree/with-gradle7.0CLI output with gradle7.0 branch installationuser@MacBook-Pro nfctest % npm run android
info JS server already running.
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.5.1/userguide/command_line_interface.html#sec:command_line_warnings FAILURE: Build failed with an exception.
BUILD FAILED in 5s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. FAILURE: Build failed with an exception.
BUILD FAILED in 5s
info Run CLI with --verbose flag for more details. With gradle7.2: https://github.com/ajaysidhu/nfc-card-reader-bug-report/tree/with-gradle7.2CLI output with gradle7.2 installationuser@MacBook-Pro nfctest % npm run android
info JS server already running.
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.5.1/userguide/command_line_interface.html#sec:command_line_warnings FAILURE: Build failed with an exception.
BUILD FAILED in 2s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. FAILURE: Build failed with an exception.
BUILD FAILED in 2s
info Run CLI with --verbose flag for more details. |
@ajaysidhu Thanks for the information, I can't see the project sadly- could you make it public? I just need the basics so I can tinker with it :) |
Oops! Can you please check again @jackbayliss ? |
@ajaysidhu perfect! Thanks |
Thanks for repo |
I have the same problem. Have you solved this issue? |
I opened the Android project in Android Studio. And it shows some problems with building the Gradle project and shows that the problem in |
Hi, |
Any update we all are facing the same issue? @jackbayliss |
@Adeel984 I will check over the holiday period, I built this a long time ago so I'm not sure what's changed, it seems gradle doesn't play ball. I will download the latest RN version and see what I can do while I'm free |
This issue is still a thing, if anyone has time to make a PR I will for sure pull it in. I haven't had time to do any updates, I'm no longer working on apps etc. |
I got the error in this image in RN 0.7 when I try to run
The text was updated successfully, but these errors were encountered: