-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Fails to run react-native run-android (v0.68.0) without yarn #33525
Comments
That's not expected. It's a bug in the setup of the New Architecture. Obviously installing yarn would fix it. @danilobuerger is working on a fix for this in #33530 |
@cortinico once this pr is merged please close this issue as well thanks for your response. |
…#33530) Summary: It is not necessary to call node via yarn. Instead with this commit node is called directly (windows aware). This enables builds on systems that don't have yarn installed. Fixes #33525 ## Changelog [Android] [Fixed] - Don't require yarn for codegen tasks Pull Request resolved: #33530 Test Plan: 1. react-native init test 2. cd test 3. enable newArchEnabled=true (gradle.properties) 4. enable enableHermes: true (build.gradle) 5. react-native run-android (when the yarn is not installed on the system) (I have not tested or verified if this works on windows build machines) Reviewed By: sshic Differential Revision: D35279376 Pulled By: cortinico fbshipit-source-id: 430e4a7bcdec7d5377efac747f6b935d634451cc
Except I use yarn already & I'm getting the same error, so it has nothing do do with yarn |
Hey @ItsCDubb, are you still seeing the same issue in the 0.68.1 release? |
Yes I am & I don't know what it means in order to resolve it |
@ItsCDubb I think it would be the most transparent if you created a new issue with reproducible steps instead 🙏 |
I'm using yarn and still facing the same error in v0.68.1. Any solution to solve the error? Because of this error unable to install the app neither in the emulator nor in android device |
I believe I did it right at https://github.com/facebook/react-native/issues/33687 |
version |
@pushpender-singh-ap I am using 0.68.2 but it's still appearing, debug build not creating due to this |
@FayyazAliKhan1 If you could send us screenshots with a sample repository, that would be helpful. |
Sorry for the late reply @pushpender-singh-ap, in the latest version 0.68.2 |
gradlew clean --stacktrace
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 "react": "17.0.2", any help?? |
getting build failed with the same error when trying to clean or build the app react: 17.0.2 anyone got this error resolved ? |
@palavellig did you find any solution ? |
Open Android Studio Settings, then select Gradle JDK as version 11 from the dropdown. |
the solution which i answered was worked for me.
…On Thu, Oct 20, 2022 at 2:09 PM m7amad-7asan ***@***.***> wrote:
@palavellig <https://github.com/palavellig> did you find any solution ?
—
Reply to this email directly, view it on GitHub
<#33525 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOYW23MBYXBQRDAZNLKCZLTWEEALLANCNFSM5SCZ7SCA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
adding this to your eas.json resolves the problem for me: @m7amad-7asan "build": { |
Thanks but I'm not using expo |
…facebook#33530) Summary: It is not necessary to call node via yarn. Instead with this commit node is called directly (windows aware). This enables builds on systems that don't have yarn installed. Fixes facebook#33525 ## Changelog [Android] [Fixed] - Don't require yarn for codegen tasks Pull Request resolved: facebook#33530 Test Plan: 1. react-native init test 2. cd test 3. enable newArchEnabled=true (gradle.properties) 4. enable enableHermes: true (build.gradle) 5. react-native run-android (when the yarn is not installed on the system) (I have not tested or verified if this works on windows build machines) Reviewed By: sshic Differential Revision: D35279376 Pulled By: cortinico fbshipit-source-id: 430e4a7bcdec7d5377efac747f6b935d634451cc
I'm facing same problem have anyone solved? |
@Mmferry This issue fix in latest react native versions |
Is it worked with expo 45 |
Expo 45 is already deprecated use 48 and 47 |
I'm just upgrading incrementally from expo 43 and wanna make sure it build successfully |
Than upgrade to 46 because deprecated versions not run in expo go application |
Still facing the same issue and i am not using expo, i am working react-native cli. |
@Malik-Usman17 can you tell us which react native version are you using |
Description
when I create a test project and enable new architecture and Hermes it's giving me this type error below:-
NOTE:- I KNOW I DON'T HAVE YARN (i love using npm that's why I don't install yarn in my system maybe this error is fixed after yarn install but it does not mean we can't run our project through npm)
Version
0.68.0
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 12.3
CPU: (8) arm64 Apple M1
Memory: 89.94 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.14.0 - /usr/local/bin/node
Yarn: Not Found
npm: 8.3.1 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 28, 30, 31, 32
Build Tools: 30.0.2, 32.0.0, 32.1.0, 33.0.0
System Images: android-32 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: 12.0.2 - /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin//javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0 => 0.68.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
Github Repo:- https://github.com/pushpender-singh-ap/testV68
The text was updated successfully, but these errors were encountered: