Add an APK source code directory to the system source code and write the corresponding android. mk file. The following error occurs during compilation:
Make: *** No rule to make target 'out/target/common/obj/JAVA_LIBRARIES/liba71S_intermediates/javalib. jar ', needed by 'out/target/common/obj/APPS/My_Settings_intermediates/classes-full-debug.jar '. stop.
Make: *** Waiting for unfinished jobs ....
Based on previous experience, I tried several methods and found that they were not solved. Later I found that there was a problem with writing the android. mk file.
Before modification:
LOCAL_PATH: = $ (call my-dir)
Include $ (CLEAR_VARS)
LOCAL_JAVA_LIBRARIES: = bouncycastle telephony-common
LOCAL_STATIC_JAVA_LIBRARIES: = android-support-v4 testinterface
LOCAL_MODULE_TAGS: = optional
LOCAL_SRC_FILES: = $ (call all-java-files-under, src)
LOCAL_PACKAGE_NAME: = My_Settings
LOCAL_CERTIFICATE: = platform
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES: android-support-v4: libs/android-support-v4.jar testinterface: libs/testinterface. jar
Include $ (BUILD_PACKAGE)
# Use the folloing include to make our test apk.
Include $ (call all-makefiles-under, $ (LOCAL_PATH ))
The above compilation will cause an error,
After modification, compile OK
LOCAL_PATH: = $ (call my-dir)
Include $ (CLEAR_VARS)
LOCAL_JAVA_LIBRARIES: = bouncycastle telephony-common
LOCAL_STATIC_JAVA_LIBRARIES: = android-support-v4 testinterface
LOCAL_MODULE_TAGS: = optional
LOCAL_SRC_FILES: = $ (call all-java-files-under, src)
LOCAL_PACKAGE_NAME: = My_Settings
LOCAL_CERTIFICATE: = platform
Include $ (BUILD_PACKAGE)
Include $ (CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES: android-support-v4: libs/android-support-v4.jar testinterface: libs/testinterface. jar
Include $ (BUILD_MULTI_PREBUILT)
# Use the folloing include to make our test apk.
Include $ (call all-makefiles-under, $ (LOCAL_PATH ))
Other Instructions:
1. To use the mm command to compile a module or application separately, you must first compile it all in the JB directory.
If you disconnect the compilation server (for example, You need to compile it separately the next day after Shutdown) and want to compile it separately, you only need to configure the project environment, provided that you have compiled it once before, and there is no clean. Configure the project compilation environment command: 1. source build/envsetup. sh 2. lunch project_number
2. if your module or app's android. if LOCAL_MODULE_TAGS: = optional is configured in mk, add the name corresponding to LOCAL_PACKAGE_NAME to the system's PRODUCT_PACKAGES + =, for example, PRODUCT_PACKAGES + = My_Setting \
3. Other specific compilation errors are processed based on the specific log information.
Zookeeper