apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'
来源:互联网 发布:河北云狐网络 编辑:程序博客网 时间:2024/06/06 02:38
android开发中,经常会用到命令行打包生成未签名的APK,即用apkbuiler.bat。
apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'
在SDK3.0之后的版本里,Google已经废弃了apkbuilder.bat取编译打包apk文件,即使从之前的版本里复制过来,虽然能够通过编译
(bat批处理无效,cmd命令行可以),但是会出现'THIS TOOL IS DEPRECATED.See --help for more information'的提示。
相应地,打包apk在apkbuilder.bat的参数是调用sdklib.jar类实现的,因此,可直接引用sdklib.jar来实现打包。
具体如下:
【输入】
java -cp D:\android-sdk-windows\tools\lib\sdklib.jar com.android.sdklib.build.ApkBuilderMain unsigner.apk -u -z bin\resources.ap_ -f bin\classes.dex -rf src
【说明】
符号说明java -cp D:\android-sdk-windows\tools\lib\sdklib.jar-cp 和 -classpath 一样,是指定类运行所依赖其他类的路径,通常是类库,jar包之类,需要全路径到jar包,window上分号“;” 分隔,linux上是分号“:”分隔。不支持通配符,需要列出所有jar包,用一点“.”代表当前路径。 这里引用sdklib.jarcom.android.sdklib.build.ApkBuilderMainsdklib.jar中的定位类Main,用于生成apk。unsigner.apk未签名的APK文件,要求绝对存放路径。 -u -z bin\resources.ap_“bin\resources.ap_”为bin目录下的资源文件。-f bin\classes.dex“bin\classes.dex”为bin目录下的.dex文件。-rf src“src”为项目的src目录。
阅读全文
0 0
- apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'
- Try `dirname --help' for more information.
- VS2015编译问题:The POSIX name for this item is deprecated. Instead, use the ISO C
- "Copy" did not complete normally. Please see the log for more information.
- "Copy" did not complete normally. Please see the log for more information
- Sizing conflicts exist on the screen; For more information see SAP Note 570861
- Copy" did not complete normally. Please see the log for more information
- android 老是弹出 "Copy" did not complete normally. Please see the log for more information.
- "Format" did not complete normally. Please see the log for more information. 解决
- unity3d报错:Internal compiler error. See the console log for more information. output was: ......
- Internal compiler error. See the console log for more information. output was:
- 'getch': The POSIX name for this item is deprecated
- win10+VS2013编译caffe的common.cpp错误error C4996: ‘getpid': The POSIX name for this item is deprecated.
- 编译trimesh2遇到问题:The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant names
- win10+VS2013编译caffe的common.cpp错误error C4996: ‘getpid': The POSIX name for this item is deprecated.
- use '@foo' to launch a virtual device named 'foo'.please use -help for more information
- /bin/sh: 1: arm-v5t_le-gcc: not found Try 'dirname --help' for more information
- Browse information is not available for this project 的烦恼
- 进制转换:二进制、八进制、十六进制、十进制之间的转换
- php 数组模糊查询
- Hive相关
- qml与c++混合编程之简单demo说明
- node request如何请求第三方服务器的文件
- apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'
- JavaSE基础知识学习一知识梳理
- mysql行转列之sum
- Linux下搭建web应用环境
- Leaflet API 翻译下
- “后进生”数学学科上演完美逆袭,成最具竞争力专业之一
- Hbase详解
- 2018年 IEEE Fellow出炉!清华、上交、北大、中科大...看看名单里还有谁?
- 小蓝退出舞台_谁能挺过O2O的第一个寒冬?