无法建立react-native 2专案至手机 [英] Unable to build react-native 2 project to phone

查看:75
本文介绍了无法建立react-native 2专案至手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完全设置了天真的项目,并一直试图将其运行到手机上,但是在运行

I have my react-naive project completely setup and have been trying to run it to my phone but kep getting the following error when i run the

react-native run-android

react-native run-android

命令.

输出:

java.io.IOException:无法运行程序"/home/webshinobis/Android/sdk/build-tools/23.0.1/aapt":error = 2,没有这样的文件或目录

java.io.IOException: Cannot run program "/home/webshinobis/Android/sdk/build-tools/23.0.1/aapt": error=2, No such file or directory

但是我已经检查了构建工具,该文件就在那里.我已经为23.0.1重新安装了构建工具,但没有更改.有什么想法可以帮助吗?谢谢.

But i have checked the build tools and that file is right there. I have reinstalled the build tools for 23.0.1 but no change. any ideas to help? thanks.

推荐答案

64位计算机所需的库:

Required libraries for 64-bit machines:

如果运行的是64位版本的Ubuntu,则需要安装一些32位库:

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries:

$sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

如果您运行的是64位Fedora:

If you are running 64-bit Fedora:

$sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

这篇关于无法建立react-native 2专案至手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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