遇到问题: Unable to locate an executable at "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/jarsigner" (-1)
如果遇到此问题, 打开(或创建) $HOME/.bash_profile. 文件路径和文件名可能在您的机器上不同添加
export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/'
export PATH=${JAVA_HOME}/bin:$PATH
然后记得执行
运行 source $HOME/.bash_profile 刷新当前终端窗口.
最后执行该命令进行打包
jarsigner -verbose -keystore liufeng.keystore -signedjar notepad_signed.apk notepad.apk liufeng.keystore
注意事项
1.把三个文件放在同一目录下