Android apk Application System Integration compilation Error

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.