react-native app启动失败

时间:2018-02-07 05:21:56

标签: android react-native

screenshot of error

我试图在Android模拟器上运行react-native app。我运行命令react-native run-android。应用程序构建开始。过了一段时间后,这个过程停止了。表明 。

java.io.IOException: Cannot run program "/home/ubuntu/Android/Sdk/build-tools/23.0.1/aapt": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:167)
        at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:118)
        at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 4 more
Thread(png-cruncher_4) has a null payload

我无法理解如何解决问题。有人可以帮忙吗?感谢

0 个答案:

没有答案