Flutter 发行版 apk 未安装在设备上 [英] Flutter release apk is not installing on device

查看:35
本文介绍了Flutter 发行版 apk 未安装在设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发布了带有签名密钥的 apk,但它没有安装在 android 设备上,它显示此消息apk 安装失败错误:无法解析错误字符串,但调试模式 apk,应用程序运行正常.

I have release apk with signed keys but it's not installing on android devices, its shows this message "The apk failed to install Error: Could not parse error string" but debugging mode apk, the app works fine.

释放命令

flutter build apk --release.

flutter build apk --release.

我确实按照这个问题解决了它,希望它可以帮助某人.

I did follow this question to solve it, hope it helps someone.

推荐答案

如果您在使用调试模式 APK 后尝试安装已签名的 APK,Android 将检测签名差异,并拒绝安装.

If you're trying to install a signed APK after using a debugging mode APK, Android will detect differences in signature, and refuse to install it.

请确保您先从设备上卸载了未签名的调试 APK,然后再次尝试安装.

Make sure you've uninstalled the unsigned debugging APK first from the device, and try to install again.

这篇关于Flutter 发行版 apk 未安装在设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆