在编译的时候遇到下面的错误
make: *** 没有规则可以创建“out/target/common/obj/APPS/Music_intermediates/classes-full-debug.jar”需要的目标“out/target/common/obj/JAVA_LIBRARIES/jarlib1_intermediates/javalib.jar”。
解决,主要加了两行在Android.mk中
LOCAL_MODULE_TAGS := optional
include $(BUILD_MULTI_PREBUILT)
一定需要所加的这两行的位置
# Copyright (C) 2010 iFlytek
# 整个工程
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-subdir-java-files) \
LOCAL_STATIC_JAVA_LIBRARIES := jarlib1 jarlib2 jarlib3
LOCAL_CERTIFICATE := platform
LOCAL_PACKAGE_NAME := Music
include $(BUILD_PACKAGE)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := jarlib1:libs/android-support-v4.jar jarlib2:libs/mta-sdk-1.0.0.jar jarlib3:libs/open_sdk.jar
include $(BUILD_MULTI_PREBUILT)
include $(call all-makefiles-under,$(LOCAL_PATH))