• Android 网络通信开源框架 Volley JAR包的生成(一)


    rengh@Rengh-ThinkPad-T440p:~/code/aosp/frameworks/volley$ ls
    Android.mk  build.gradle  build.xml  custom_rules.xml  pom.xml  proguard.cfg  proguard-project.txt  rules.gradle  src
    rengh@Rengh-ThinkPad-T440p:~/code/aosp/frameworks/volley$ mm -B
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=5.0.555
    TARGET_PRODUCT=aosp_grouper
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=cortex-a9
    TARGET_2ND_ARCH=
    TARGET_2ND_ARCH_VARIANT=
    TARGET_2ND_CPU_VARIANT=
    HOST_ARCH=x86_64
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-3.13.0-46-generic-x86_64-with-Ubuntu-14.04-trusty
    HOST_BUILD_TYPE=release
    BUILD_ID=AOSP
    OUT_DIR=out
    ============================================
    No private recovery resources for TARGET_DEVICE grouper
    make:进入目录'/home/rengh/code/aosp'
    target Java: volley (out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/classes)
    注: frameworks/volley/src/main/java/com/android/volley/RequestQueue.java使用了未经检查或不安全的操作。
    注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    Copying: out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/classes-jarjar.jar
    Copying: out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/emma_out/lib/classes-jarjar.jar
    Copying: out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/classes.jar
    target Static Jar: volley (out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/javalib.jar)
    make:离开目录“/home/rengh/code/aosp”
    
    #### make completed successfully (5 seconds) ####

    在AOSP的源码中,进入framework/volley目录,执行mm -B即可编译出可用的jar包。如上面所示生成的jar包名为javalib.jar,将其copy到我们软件工程的libs目录下即可使用。
  • 相关阅读:
    个人博客05
    个人随笔04
    ELK-Kibana汉化
    Centos7下使用mail发送邮件
    使用Docker搭建Tomcat运行环境
    Jenkins添加maven插件
    linux下安装nodejs及npm
    服务器重启后Jenkins项目部分丢失问题解决方法
    【linux】如何查看文件的创建、修改时间
    禅道
  • 原文地址:https://www.cnblogs.com/ren-gh/p/4312800.html
Copyright © 2020-2023  润新知