无法运行React-Native UIExplorer示例项目 [英] Unable to run React-Native UIExplorer example project

查看:126
本文介绍了无法运行React-Native UIExplorer示例项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在Windows上运行UIExplorer项目.我收到以下错误-

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?

推荐答案

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

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.

您必须使用Android NDK r10e:

You must use the Android NDK r10e :

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

这篇关于无法运行React-Native UIExplorer示例项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆