這個是常常的需求,我就是常常忘,關鍵不理解啊。java
反反覆覆的也看看了android makefile。 太複雜了。 慢慢來吧。哎。工做十年。啥也不會。咋整? android
#
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#express
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)apache
LOCAL_MODULE_TAGS := optionalapp
LOCAL_STATIC_JAVA_LIBRARIES := mdmless
LOCAL_SRC_FILES := $(call all-java-files-under, src)ui
LOCAL_CERTIFICATE := platform
LOCAL_SDK_VERSION := currentthis
LOCAL_PACKAGE_NAME := cjzangspa
include $(BUILD_PACKAGE)orm
include $(CLEAR_VARS)
#臧春傑, marvell, honeywell
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := mdm:libs/mdmframeworkclient.jar
include $(BUILD_MULTI_PREBUILT)
就仿照個樣子寫就行了。
mdm是什麼? 無所謂,你寫個 abcd也行。 關鍵是把下面的對應寫好了。mdm:lib/****.jar 這裏就是對應的具體jar包。就能夠了。