当运行反应本机应用程序时,我收到此错误

时间:2017-12-29 19:04:29

标签: android react-native

我已经安装了构建工具23.0.1。但是我收到了这个错误。

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

1 个答案:

答案 0 :(得分:2)

首先确保是否存在相应的文件,然后请尝试一些可能解决您问题的操作:

update latest android sdk tools

clean and rebuild after sync build.gradle

invalid cache /restart

如果您正在使用jenkins,请在终端中尝试以下命令: sudo apt-get install lib32stdc ++ 6 lib32z1

如果所有选项都无效,请点击此链接:Ant debug and ant release failed"aapt" IOException error=2, No such file or directory" why can't I build my gradle on jenkins?

希望这会对你有所帮助。

相关问题