Open lhogan3 opened 1 month ago
+1 Same thing's happening. I read solutions like putting resolutions but didn't help.
All this log says is that the JS script failed, which could be for any number of reasons.
Can you get the script's output (maybe further up in the Gradle output), or run it directly outside of the Gradle build, so we can see what's happening?
node node_modules/@react-native-community/cli/build/bin.js config --platform android
@robhogan I got an error on that command
error: unknown option --platform
Below are some more details from the experienced error. I tried changing the cli version to latest and it's the same, same when going down.
* Where:
Script '<PROJECT_PATH>/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 397
* What went wrong:
A problem occurred evaluating script.
> Could not find method exec() for arguments [ReactNativeModules$_getCommandOutput_closure16@37846d19] on object of type org.gradle.api.internal.provider.DefaultProviderFactory_Decorated.
@robhogan @xgenem's description above is what we are receiving as well. Seems as though when @react-native-community/cli/build/bin.js is run we get the error: unknown option --platform
.
Agreed as well with the fact that we have tried downgrading the CLI with no different behavior. Do you have any suggestions here?
@robhogan @xgenem It seems as though this might be an issue with the version of react-native
not pulling in the fix that is explained here: https://github.com/react-native-community/cli/pull/2470
Seems as though this was found and fixed in @react-native-community/cli v14.0.1
: https://github.com/facebook/react-native/pull/46124
Would this be able to be updated for react-native v73.6
?
Ask your Question
Similar, but not the same as #2469.
My team and I have been running into this android build issue for a month now and have not been able to come up with a solution. This occurs when we run either a
./gradlew clean
or./gradlew build
.npx react-native info
output:Any help with this would be much appreciated, thank you.