这是错误日志:
Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: **AAPT process not ready to receive commands**
:app:mergeDebugResources FAILED
最佳答案
当我运行此命令时:$ aapt
它回复我:
aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
然后我运行:$locate libz.so
,它回复我:
/lib/x86_64-linux-gnu/libz.so.1
/lib/x86_64-linux-gnu/libz.so.1.2.8
此刻,我很困惑,没有什么问题,所以我再次运行 $ aapt --help
,但它也返回给我:
aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
最后,我在 this place 解决了这个问题,使用这个 $ sudo apt-get install lib32z1
命令,安装 lib32z1.so 文件,现在效果很好!
关于android - 第一次运行 'react-native run-android' 时,出现此错误 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45204592/