Android(安卓)网络框架Volley JAR包生成
16lz
2021-01-26
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中添加权限
更多相关文章
- NDK HOWTO
- 【Android】问题记录2019/3/18:上传APP到Google Play因为权限问题
- Android数据库安全permission
- [置顶] 解决Android(安卓)SDK和Android(安卓)Studio不能更新的问
- android sdcard文件访问权限与apk应用 userid 访问权限的关系。
- 清华大学Android源码镜像下载最新Android系统源码
- Android之启动应用源码分析
- Android(安卓)Query框架用法简单介绍
- Android(安卓)6.0 运行时权限处理