|
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
【说明】
|
apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'
最新推荐文章于 2025-08-08 10:11:36 发布
在使用apkbuilder.bat进行Android应用编译时遇到提示'THIS TOOL IS DEPRECATED.See --help for more information'。这表明该工具已被弃用,需要寻找替代方案或查看帮助信息更新编译过程。
3万+

被折叠的 条评论
为什么被折叠?



