5

我一直在尝试在 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

有没有机会克服这个问题?

4

1 回答 1

13

React Native 0.22 不支持最后一个 Android NDK (r11),因为它需要预构建的 gcc 4.8,它不包含在 r11 中。

您必须使用 Android NDK r10e:

于 2016-03-25T02:32:16.993 回答