找不到"apksigner"可执行文件来手动签名APK [英] Can't find 'apksigner' executable to manually sign APK

查看:2115
本文介绍了找不到"apksigner"可执行文件来手动签名APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循手动签名您的应用指南,

您可以使用Android SDK和JDK中的标准工具从命令行对应用程序进行签名

You can sign your app from the command line using standard tools from the Android SDK and the JDK

我应该在某个地方运行apksigner

I should have apksigner somewhere to run

$ apksigner标志--ks my-release-key.jks my-app.apk

$ apksigner sign --ks my-release-key.jks my-app.apk

该可执行文件应该在哪里?该文档从未在签名指南"或 apksigner 文档.

Where is this executable supposed to be? The documentation never specifies where I'm supposed to get the tool on the Signing guide or the apksigner doc.

我不记得上次手动签署应用程序时遇到此问题.我搜索了所有我想不到的目录(包括子目录):

I don't recall having this problem last time I manually signed an app. I've searched all the directories I can think of with no luck (including subdirectories):

  • AppData \ Local \ Android \ sdk
  • Program Files \ Android \ Android Studio
  • 程序文件\ Java \ jdk1.8.0_91

搜索"apksigner" 似乎导致了许多非官方的APK签名工具,但没有官方下载.我想念什么?

Googling for 'apksigner' just seems to turn up a number of unofficial apk signing tools but no official download. What am I missing?

运行Android Studio 2.2,构建工具24.0.2,JDK 1.8

Running Android Studio 2.2, Build Tools 24.0.2, JDK 1.8

谢谢

答复::将其更新为24.0.3即可解决.感谢 Alex Klyubin ,请支持他的回答.由于某些原因,构建工具24.0.2根本没有apksigner.

ANSWERED: Updating to to 24.0.3 solves it. Thanks to Alex Klyubin, please upvote his answer. For some reason Build Tools 24.0.2 simply does not have apksigner.

Build Tools,修订版24.0.3(2016年9月)

Build Tools, Revision 24.0.3 (September 2016)

  • 添加了apksigner,这是一个用于替换jarsigner的APK签名工具...

推荐答案

apksigner随Android SDK Build Tools 24.0.3一起提供(请参见

apksigner shipped with Android SDK Build Tools 24.0.3 (see https://developer.android.com/studio/releases/build-tools.html). The tool can be found in the Android SDK's build-tools/<tools version> directory. For example, build-tools/24.0.3/apksigner on Linux/OSX and build-tools/24.0.3/apksigner.bat on Windows.

这篇关于找不到"apksigner"可执行文件来手动签名APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆