简体   繁体   中英

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 .

I use this ./gradlew assembleRelease to compile a release version.

When I try to install it adb install app-release-unsigned.apk , it give me this error:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

What is the error?

Can I distribute it without signing?

No, Android will only install signed APKs. Even debug versions are signed, they're signed with a debug key Android Studio creates when its run the first time. You don't have to sign it with your release key though if you don't want to.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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