Android 开发之'keytool' is not recognized as an internal or external command,operable program or batch

最近在接入百度地图sdk需要填写证书指纹 sh1

按照网上的方法用cmd进入 user/.android然后输入以下命令

(图是百度地图平台直接拿过来的,侵删)

Android 开发之'keytool' is not recognized as an internal or external command,operable program or batch_第1张图片

但我就知道没这么轻松,输入命令时出现了以下错误

'keytool' is not recognized as an internal or external command,operable program or batch file.

看来只能曲线救国了,由于我用的是Android studio,以下方法可能只有as能用

1.打开项目,然后点击右边的Gradle(注意:是AndroidStudio的右边),然后就会出现一个目录

接着点击app->Tasks->android->signingReport

 

Android 开发之'keytool' is not recognized as an internal or external command,operable program or batch_第2张图片

 

然后看看控制台下面,出现了,惊喜不

 

Android 开发之'keytool' is not recognized as an internal or external command,operable program or batch_第3张图片

你可能感兴趣的:(a)