React-Native踩坑笔记之java.io.IOException: Cannot run program "/opt/java/Sdk/build-tools/23.0.1/aapt"

最近笔记本换了LinuxMint18.

安装开发环境,第一次运行React—Native报一下错误。

java.io.IOException: Cannot run program "/opt/java/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.(UNIXProcess.java:247)

at java.lang.ProcessImpl.start(ProcessImpl.java:134)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

原因是被系统时64位的不支持aapt。

解决方法:apt-getinstall ia32-libs

你可能感兴趣的:(React-Native踩坑笔记之java.io.IOException: Cannot run program "/opt/java/Sdk/build-tools/23.0.1/aapt")