Android Source Code compiling apk import third-party package error, androidapk

Source: Internet
Author: User

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

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.