Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find 'apksigner' executable to manually sign APK

Tags:

android

apk

Following the Sign Your App Manually guide,

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

I should have apksigner somewhere to run

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

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
  • Program Files\Java\jdk1.8.0_91

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

Running Android Studio 2.2, Build Tools 24.0.2, JDK 1.8

Thanks

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, Revision 24.0.3 (September 2016)

  • Added apksigner, an APK signing tool to replace jarsigner ...
like image 681
ScottyC Avatar asked Oct 12 '16 17:10

ScottyC


2 Answers

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.

like image 101
Alex Klyubin Avatar answered Oct 09 '22 19:10

Alex Klyubin


On mac
The Apksigner is inside build tools all you need is this line

/Users/adewale***/Library/Android/sdk/build-tools/28.0.3/apksigner verify MyApp.apk 

just change /Users/adewale***/Library/Android/sdk/build-tools to your build tools path. Done

like image 20
Ahmed Adewale Avatar answered Oct 09 '22 20:10

Ahmed Adewale