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 Failure: node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 213 #35887
Comments
What happens if you run:
in your console? The output should be:
|
Hi @cortinico, thanks for the reply, when I run this I get the expected result i.e /Users/suhas.wagre/Projects/React Native/11_Jan_2020/blc_upgrade/node_modules/@react-native-community/cli/build/bin.js |
Then this looks like a local issue. I would suggest you:
If still failing, please run |
Hi @cortinico please find the build log below:
|
So the error you were seing is resolved. Now your app is failing to build because it can't find the autolinked libraries;
Can you copy-paste your build.gradle files (both of them) and the |
Hi @cortinico Please find the requested files below: android/app/build.gradle
android/build.gradle
settings.gradle
|
|
Thanks for sharing them. Your setup looks correct, but you have a lot of custom logic inside your I would need a repro to look further into this |
Hi @cortinico, thanks for the help I was able to resolve the issue by simply removing the dependencies whose imports were unrecognisable and I was able to compile and install the Android app. |
Description
Hello everyone, I am trying to upgrade my React Native (RN) app from version 0.61.5 to 0.69.7 with the help of react native upgrade helper, I have made all the required changes on js side and native side of the code, but when I tried to clean/rebuild the Android project in the Android Studio after making all the mentioned changes I am facing an issue like below:
:ReactNative:Unexpected empty result of running '[node, -e, try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}]' command.
:ReactNative:Running '[node, -e, try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}]' command failed.
FAILURE: Build failed with an exception.
Where:
Script '/Users/suhas.wagre/Projects/React Native/11_Jan_2020/blc_upgrade/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 213
What went wrong:
A problem occurred evaluating script.
Version
0.69.7
Output of
npx react-native info
System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 143.81 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 19.4.0 - ~/.nvm/versions/node/v19.4.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v19.4.0/bin/yarn
npm: 9.2.0 - ~/.nvm/versions/node/v19.4.0/bin/npm
Watchman: 2022.12.12.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.7 => 0.69.7
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
Here.
The text was updated successfully, but these errors were encountered: