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目录下即可使用。
posted @ 2015-03-04 11:20  挽风阁  阅读(1443)  评论(0编辑  收藏  举报