Android Source Code compiling apk import third-party package error, androidapk
The error message is as follows:
Make: * ** no rules are available to create the target "out/target/common/obj/APPS/AndroidWFS_intermediates/classes-full-debug.jar" required by "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes. jar ". Stop.
Solution:
- Copy the project to the packages/apps directory
- Create an 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.1 commons-io-2.1 core tools acraLOCAL_PACKAGE_NAME: = AndroidWFSLOCAL_CERTIFICATE: = platformLOCAL_DEX_PREOPT: = false # This line adds only the standalone apk and generates an odex and an apkinclude $ (BUILD_PACKAGE) when true) include $ (call all-makefiles-under, $ (LOCAL_PATH ))
Commons-httpclient-3.0.1 core tools acra # These are aliases, take whatever, the following jarname will be used
- Create the directory out/target/common/obj/JAVA_LIBRARIES/jarname_intermediates
- Copy the jar package to the preceding directory and rename it classes. jar.
- Run the command in the source code root directory.
. Build/envsetup. shlunch aosp_arm-engcd packages/apps/applicationdir (project directory) mm
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.