如何将android应用程序添加到android源代码中并进行编译

时间:2017-05-04 06:59:41

标签: android rom custom-rom

尝试在ERAGON820上将应用程序添加到android源代码中,使其成为预构建的应用程序。但是在编译时低于错误

make[2]: Leaving directory `/home/administrator/ERAGON820_Android-MM-BSP_Relv2.0/source/LA.HB.1.3.2-16800-8x96.0_Relv2.0/out/target/product/msm8996/obj/KERNEL_OBJ'
make[1]: Leaving directory `/home/administrator/ERAGON820_Android-MM-BSP_Relv2.0/source/LA.HB.1.3.2-16800-8x96.0_Relv2.0/kernel'
mdpath=`find out/target/product/msm8996/system/lib/modules -type f -name modules.dep`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do mv $i out/target/product/msm8996/system/lib/modules/; done; fi
mdpath=`find out/target/product/msm8996/system/lib/modules -type f -name modules.dep`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi

#### make failed to build some targets (03:16 (mm:ss)) ####

1 个答案:

答案 0 :(得分:0)

  • 检查以确保mo dules.dep.bin不为空。

  • 如果您使用的是Linux,请尝试重新安装linux-image-3.x.x-x-generic  apt-get install之类的东西--reinstall linux-image - uname -r  或者你可以升级你的内核。  如果您无法访问您的网络,请尝试  dpkg-reconfigure linux-image - $(uname -r)