apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'
2017-11-23 14:25
489 查看
[align=left]android开发中,经常会用到命令行打包生成未签名的APK,即用apkbuiler.bat。[/align] [align=left]apkbuiler.bat编译出现'THIS TOOL IS DEPRECATED.See --help for more information'[/align] [align=left]在SDK3.0之后的版本里,Google已经废弃了apkbuilder.bat取编译打包apk文件,即使从之前的版本里复制过来,虽然能够通过编译[/align] [align=left](bat批处理无效,cmd命令行可以),但是会出现'THIS TOOL IS DEPRECATED.See --help for more information'的提示。[/align] [align=left]相应地,打包apk在apkbuilder.bat的参数是调用sdklib.jar类实现的,因此,可直接引用sdklib.jar来实现打包。[/align] [align=left]具体如下:[/align] [align=left]【输入】[/align] [align=left] [/align] 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 [align=left] [/align] [align=left]【说明】[/align] [align=left] [/align]
|
相关文章推荐
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- 出现 cannot download, $GOPATH not set. For more details see: go help gopath
- This program is blocked by group policy. For more information, contact your system administrator.
- Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T
- win10+VS2013出现问题:error C4996: 'mkdir': The POSIX name for this item is deprecated.
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter '1' for row 0. For more information about this error, please see http://datatables.net/tn/4
- Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T
- 在使用visual studio 2013写程序时 ,出现了(“The POSIX name for this item is deprecated. Instead, use the ISO C+
- Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T
- Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T
- ORA-00824: cannot set sga_target due to existing internal settings, see alert log for more information
- "The state information is invalid for this page and might be corrupted"错误的一个解决办法
- cannot download, $GOPATH not set. For more details see: go help gopath
- mac上安装eclipse出现Version 1.6.0_65 of the JVM is not suitable for this produc
- 调用app出现"This app is not allowed to query for scheme..."
- the information provided for this listener is currently in use by other softw
- Delphi出现“borland license information was found,but it is not valid for delphi”的错误,无法运行的解决方法
- Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
- cocos2d-x打包的时候出现空指针的问题,An error has occurred. See error log for more details. java.lang.NullPointerE