zoukankan      html  css  js  c++  java
  • android Makefile把jar包打到apk里

      这个是经常的需求,我就是经常忘,关键不理解啊。

         反反复复的也看看了android makefile。 太复杂了。 慢慢来吧。哎。工作十年。啥也不会。咋整? 

      

    #
    # 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.
    #

    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)

    LOCAL_MODULE_TAGS := optional

    LOCAL_STATIC_JAVA_LIBRARIES := mdm

    LOCAL_SRC_FILES := $(call all-java-files-under, src)

    LOCAL_CERTIFICATE := platform
    LOCAL_SDK_VERSION := current

    LOCAL_PACKAGE_NAME := cjzang

    include $(BUILD_PACKAGE)

    include $(CLEAR_VARS)

    #臧春杰,  marvell,  honeywell 
    LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := mdm:libs/mdmframeworkclient.jar
    include $(BUILD_MULTI_PREBUILT)

     

    就仿照个样子写就好了。

    mdm是什么? 无所谓,你写个 abcd也行。 关键是把下面的对应写好了。mdm:lib/****.jar  这里就是对应的具体jar包。就可以了。

  • 相关阅读:
    JS,Jquery获取各种屏幕的宽度和高度
    mysql存储html代码之导出后无法导入问题
    php之简单socket编程
    php单点登录SSO(Single Sign On)的解决思路
    php读取邮件
    YII框架的依赖注入容器
    YII框架的行为
    YII框架的事件机制
    YII框架的模块化技术
    mysql的索引
  • 原文地址:https://www.cnblogs.com/nan-jing/p/5820486.html
Copyright © 2011-2022 走看看