我一直在尝试在Windows上运行UIExplorer项目。我收到以下错误 -
...
...
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
有没有机会克服这个问题?
答案 0 :(得分:13)
React Native 0.22并不支持最后一个Android NDK(r11),因为它需要预先构建的gcc 4.8,它不包含在r11中。
您必须使用Android NDK r10e: