android gradld upgrade to 4.1 after the report d
i had same problem in androidstudio3.0,but I run "./gradlew build" is successful in Cammand,why?
Hi @tianweicc and thanks for reaching us.
Please follow the issue template so we could be able to help you with your issue.
i had resolved :
it seem can't find 'node' path,I fix "*nodeExecutableAndArgs"->"/usr/local/bin/node" then it is work
Glad to here that @linjson! I am closing this issue for now. @tianweicc if solution suggested by @linjson will not help you please feel free to reopen it.
@linjson Hi, I'm getting the same errors...
I don't understand what you mean by
_it seem can't find 'node' path,I fix "*nodeExecutableAndArgs"->"/usr/local/bin/node" then it is work_
Can you please explain how you fixed this issue?
Thank you,
@fhad-getmaple
to find "react-native-code-push/android/codepush.gradle" this file
@linjson How did you resolve this issue?
find "react-native-code-push/android/codepush.gradle" file,
change
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
to
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["/usr/local/bin/node"]
It works for me!
Just for reference, there's a workaround that can be found here: https://github.com/facebook/react-native/issues/6875#issuecomment-293220175
I got this issue when upgrading to Android Studio 3, using api 26. Similar issue to https://github.com/Microsoft/react-native-code-push/issues/1069
Most helpful comment
find "react-native-code-push/android/codepush.gradle" file,
change
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
to
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["/usr/local/bin/node"]
It works for me!