Google I/O 2013上,谷歌发布了Android网络通信框架Volley,以前我都是直接使用源码编译的,那么问题来了,怎么直接打包成jar包使用呢?

不要着急,请看如下步骤:


1、下载源码

git clone https://android.googlesource.com/platform/frameworks/volley


2、编译

      gradle build 


3、编译错误解决

Ran lint on variant release: 2 issues foundRan lint on variant debug: 2 issues foundWrote HTML report to file:/F:/study/opensource/volley/build/outputs/lint-results.htmlWrote XML report to F:\study\opensource\volley\build\outputs\lint-results.xml:lint FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':lint'.> Lint found errors in the project; aborting build.Fix the issues identified by lint, or add the following to your build script to proceed with errors:...android {    lintOptions {        abortOnError false    }}




    解决方法: 在AndroidManifest.xml中添加权限


4、获取volley.jar

      在如下目录找到class.jar改成volley.jar
      F:\study\opensource\volley\build\intermediates\bundles\release/class.jar 



    解决方法: 在AndroidManifest.xml中添加权限

更多相关文章

  1. NDK HOWTO
  2. 【Android】问题记录2019/3/18:上传APP到Google Play因为权限问题
  3. Android数据库安全permission
  4. [置顶] 解决Android(安卓)SDK和Android(安卓)Studio不能更新的问
  5. android sdcard文件访问权限与apk应用 userid 访问权限的关系。
  6. 清华大学Android源码镜像下载最新Android系统源码
  7. Android之启动应用源码分析
  8. Android(安卓)Query框架用法简单介绍
  9. Android(安卓)6.0 运行时权限处理

随机推荐

  1. Android应用程序编译过程简述
  2. Android(安卓)JSON解析示例代码
  3. android多apk共享私有文件
  4. android之使用signapk打包成系统应用,获取
  5. Android(安卓)NDK会带来什么,除去你对NDK
  6. 使用AIDL(Android接口描述语言)设计和使
  7. Android开发11――手机横屏和竖屏与andro
  8. android下修改hosts文件不起作用(无效)的解
  9. Android的Handler总结
  10. Android(安卓)Animation学习笔记