Unable to run React-Native UIExplorer example project

人走茶凉 提交于 2020-01-02 04:06:09

问题


I've been trying to run UIExplorer project on Windows. I am getting the following error-

...
...
make: *** [D:\react-native\ReactAndroid\build\tmp\buildReactNdkLib/local/
armeabi-v7a/objs/reactnativejni/JExecutorToken.o] Error 2
...
...
What went wrong: Execution failed for task ':ReactAndroid:buildReactNdkLib'. 
> Process 'command 'C:\android-ndk-r11b\ndk-build.cmd'' finished with non-zero exit value 2
...
... 
Caused by: org.gradle.process.internal.ExecException: Process 'command 
'C:\android-ndk-r11b\ndk-build.cmd'' finished with non-zero exit value 2

Is there any chance to overcome this issue?


回答1:


React Native 0.22 doesn't support the last Android NDK (r11) because it needs the prebuilt gcc 4.8 which is not included into r11.

You must use the Android NDK r10e :

  • Windows 32-bit
  • Windows 64-bit
  • Mac OS X 64-bit
  • Linux 64-bit (x86)


来源:https://stackoverflow.com/questions/36209774/unable-to-run-react-native-uiexplorer-example-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!