简体   繁体   English

重新编译Android时无法创建system.img

[英]Cannot create system.img when recompiling Android

I wan to recompile android project. 我想重新编译android项目。 I followed steps here ...but every time after ~2 hrs of processing (with no errors I guess), I cannot find the "system.img" file in the output directory. 我按照这里的步骤进行 ...但是每次处理2小时后(我猜没有错误),我在输出目录中找不到“system.img”文件。 I can find the other 2 files ramdisk.img, userdata.img and extracted system folder, but not system.img. 我可以找到其他2个文件ramdisk.img,userdata.img和解压缩的系统文件夹,但不能找到system.img。

This causes the emulator to give this error when trying to run it: 这会导致模拟器在尝试运行时出现此错误:

emulator: ERROR: No initial system image for this configuration! 模拟器:错误:此配置没有初始系统映像!

I made it working now. 我现在就开始工作了。 I found that the error occurred while compiling "libwebcore" module so it ends the process. 我发现在编译“libwebcore”模块时发生了错误,因此它结束了该过程。

I found the solution here . 我在这里找到了解决方案。

1- I cleaned the build files for libwebcore only not to clean all builds, otherwise, we will have to redo all build again 1-我清理libwebcore的构建文件只是为了不清除所有构建,否则,我们将不得不重做所有构建

make clean-libwebcore

2- I build only the libwebcore modules to be concerned only about it until it gets to success. 2-我只构建了libwebcore模块,只关注它才能获得成功。

make -j8 libwebcore

3- You just have to launch a normal build process with make to go on building the other remaining modules * 3-您只需启动正常的构建过程,使用make继续构建其他剩余模块*

make -j8

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

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