简体   繁体   English

在运行React Native App时出现此错误

[英]while running react native app i got this error

i already installed the build tools 23.0.1.but i got this error. 我已经安装了构建工具23.0.1。但是我得到了这个错误。

java.io.IOException: Cannot run program "/root/Android/Sdk/build-tools/23.0.1/aapt": error=2, No such file or directory java.io.IOException:无法运行程序“ /root/Android/Sdk/build-tools/23.0.1/aapt”:error = 2,没有这样的文件或目录

First make sure there is respective file exist or not, then please try this some action, that might solve your problem: 首先确保存在相应的文件,然后尝试执行以下操作,这可能会解决您的问题:

update latest android sdk tools

or 要么

clean and rebuild after sync build.gradle

or 要么

invalid cache /restart

if you are using jenkins then try this command in terminal: sudo apt-get install lib32stdc++6 lib32z1 如果您使用的是jenkins,请在终端中尝试以下命令: sudo apt-get install lib32stdc ++ 6 lib32z1

if all the option didn't work just follow this link: Ant debug and ant release failed and "aapt" IOException error=2, No such file or directory" why can't I build my gradle on jenkins? 如果所有选项均不起作用,请单击以下链接: Ant调试和ant发行失败,并且“ aapt” IOException错误= 2,没有这样的文件或目录“为什么我不能在jenkins上建立gradle?

Hope this will help for you. 希望这对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM