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

前端 未结 4 998
天命终不由人
天命终不由人 2020-12-09 15:24

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

相关标签:
4条回答
  • 2020-12-09 15:48

    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.

    0 讨论(0)
  • 2020-12-09 15:50

    Use This command will work for sure (For Windows)

    --Go to this directory C:/Users/{UserName}/AppData/Local/Android/Sdk/build-tools/29.0.0/

    --Type this command : apksigner.bat verify {PathToApp/AppName}.apk

    Full Example :C:/Users/Surya/AppData/Local/Android/Sdk/build-tools/29.0.0/apksigner.bat verify C:/AndroidApp/test.apk

    0 讨论(0)
  • 2020-12-09 15:55

    On Windows 10 it should be under directory

     C:\Users\{user}\AppData\Local\Android\Sdk\build-tools\
    

    Note the AppData directory is by default hidden. First make sure you installed Android SDK 24.0.3 or later.

    0 讨论(0)
  • 2020-12-09 15:58

    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

    0 讨论(0)
提交回复
热议问题