The error content is as follows:
make: *** 没有规则可以创建“out/target/common/obj/APPS/AndroidWFS_intermediates/classes-full-debug.jar”需要的目标“out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar”。 停止。
Solution:
- Copy the project to the Packages/apps directory
- New Android.mk File
Local_path:=$(Call My-dir)include $(Clear_vars)Local_module_tags := OptionalLocal_src_files :=$(Call All-java-files-under, SRC)local_java_libraries := commons-httpclient-3.0.1commons-io-2.1Core Tools AcraLocal_package_name :=Androidwfslocal_certificate := Platformlocal_dex_preopt :=false#这行加上后只生成独立apk, a odex and an apk are generated when Trueinclude $(Build_package)include $(Call All-makefiles-under,$(Local_path))
commons-httpclient-3.0.1 commons-io-2.1 core tools acra#这些是别名,随便取,下面的jarname会用到的
- Create Directory Out/target/common/obj/java_libraries/jarname_intermediates
- Copy the jar package to the above directory and rename it to Classes.jar
- Execute in Source root directory
. build/envsetup.shlunch aosp_arm-engcd packages/apps/applicationdir(项目目录)mm
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android source code compilation APK Import third party Package error