问题描述
我正在尝试检查我的签名版本apk是否真的签名. 但在一些教程之后,或者我发现的单身.
$ jarsigner -verify -verbose -certs my_application.apk
我收到这条消息:"Jarsigner无法识别内部外部命令".
记住我的apk是jarsigner.exe的同一个文件夹中 我不知道该怎么办.
推荐答案
解决方案:将Android jdk bin文件夹添加到环境变量中的路径中.
指令:
1 - 右键单击"此PC">右键单击属性>高级系统设置>环境变量>选择路径然后编辑.
2-将其JDK Bin文件夹路径添加到环境变量,它应该如下所示:
"c:\ program files \ java \ jdk1.8.0_40 \ bin".
其他推荐答案
- 转到我的电脑 - >右键单击 - >系统属性 - >选择环境变量 - >编辑路径 - > 添加您的JDK/BIN路径,然后选择确定.示例JDK路径如下所示.
c:\ program files \ java \ jdk1.8.0_211 \ bin
*如果这不起作用然后
- 在命令提示符下使用以下命令设置路径
set path = c:\ program files \ java \ jdk1.8.0_211 \ bin
现在,路径设置现在您可以使用jarsigner
其他推荐答案
如果上述步骤不起作用,请在c:\ program files \ java \ jdk_version \ bin \中复制unsigned-seament-apk.apk文件和keystore文件并将cmd作为管理员运行并导航到C. :\程序文件\ java \ jdk_version \ bin \
现在你的jarsigner将成功地工作.
问题描述
i'm trying to check if my signed release apk is really signed. But following some tutorials, or the single i've found .
$ jarsigner -verify -verbose -certs my_application.apk
I am receiving this message : "Jarsigner is not recognized internal external command".
Remembering that my apk is in the same folder of jarsigner.exe I dont know what to do.
推荐答案
Solution: Add android jdk bin folder to your path in environment variables.
Instructions:
1- Right click on "This PC" > right-click Properties > Advanced system settings > Environment Variables > select PATH then EDIT.
2- Add your jdk bin folder path to environment variables, it should look like this:
"C:\Program Files\Java\jdk1.8.0_40\bin".
其他推荐答案
- Go to My computer -> right click -> system properties ->select environmental variables ->Edit Path -> add your jdk/bin path and select ok. The sample jdk path is as shown below.
C:\Program Files\Java\jdk1.8.0_211\bin
*if this not work then
- In command prompt set the path by using the below command
set PATH=C:\Program Files\Java\jdk1.8.0_211\bin
now the path is set now you can use the jarsigner
其他推荐答案
If the above step does not work, copy the unsigned-release-apk.apk file and keystore file in C:\Program Files\java\jdk_version\bin\ and run cmd as an administrator and navigate to C:\Program Files\java\jdk_version\bin\
Now your jarsigner will work successfully.