Android source code compilation APK Import third party Package error

Source: Internet
Author: User

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
    • Wait for apk

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

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.