繁体   English   中英

在 Visual Studio 上反应本机签名的 APK 错误

[英]React Native Signed APK Error on Visual Studio

当我在 VCode for React Native App 上点赞时

keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore 
-alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

然后显示这个错误

keytool : The term 'keytool' is not recognized as the name of a cmdlet, 
function, script file, or operable program. Check the spelling of the 
name, or if a path was included, 
verify that the path is correct and try again.
At line:1 char:1
+ keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keys 
...
+ ~~~~~~~
+ CategoryInfo          : ObjectNotFound: (keytool:String) [], 
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

我如何解决这个问题并从 React Native Project 生成一个 APK 文件

首先你应该去你的JDK目录,然后你应该运行那个命令。

请一步一步地按照文档并逐行阅读。

https://reactnative.dev/docs/signed-apk-android

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM