Android8.1 源码编译.ipr .iml 文件-转改
2020-11-06 本文已影响0人
876f5e631df4
原链接:https://www.jianshu.com/p/9450806f38be
第一步:进入AOSP<cd LINUX/android>的根目录,执行命令:
source build/envsetup.sh
lunch
mmm development/tools/idegen/
如果执行成功,可以看到这个提示内容
build completed successfully (02:39 (mm:ss))
报错:[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
ninja: error: 'out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes.jar', needed by 'out/host/common/obj/JAVA_LIBRARIES/idegen_intermediates/classes-full-debug.jar', missing and no known rule to make it
15:45:37 ninja failed with: exit status 1
#### failed to build some targets (27 seconds) ####
ninja 可能是内存问题
解决:
cd development/tools/idegen/
mma
第二步:执行:
sh ./development/tools/idegen/idegen.sh
好了,在项目的根目录就会生成.ipr .iml 文件了。
第三步:接下来打开studio 选择 .ipr 文件导入即可
大成