简体   繁体   English

分发没有证书的android应用发布版本

[英]Distribute android app release version without certificate

Not going to distribute the app just want to release a react-native app for testing without debugging mode . 不想分发该应用程序,只是想发布一个无需debugging mode即可进行测试的反应式应用程序。

I use this ./gradlew assembleRelease to compile a release version. 我使用此./gradlew assembleRelease来编译发行版本。

When I try to install it adb install app-release-unsigned.apk , it give me this error: 当我尝试安装它adb install app-release-unsigned.apk ,它给了我这个错误:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

What is the error? 有什么错误?

Can I distribute it without signing? 我可以不签名就分发吗?

No, Android will only install signed APKs. 不,Android只会安装签名的APK。 Even debug versions are signed, they're signed with a debug key Android Studio creates when its run the first time. 即使调试版本已签名,它们也会使用Android Studio首次运行时创建的调试密钥进行签名。 You don't have to sign it with your release key though if you don't want to. 即使您不想这样做,也不必使用释放密钥对其进行签名。

将apk转移到设备上,您可以使用Play商店中名为apk-signer的应用,该应用将为apk提供签名,然后您可以安装或分发

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

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