这是我的项目: https ://github.com/kenpeter/my_hak_news,它是 https://github.com/grigio/HAgnostic-News 的直接副本。
git clone https://github.com/kenpeter/my_hak_news ,然后运行 react-native run-android
得到这个错误:
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.hagnosticnews signatures do not match the previously installed version; ignoring!
相关问题: https ://github.com/grigio/HAgnostic-News/issues/1 ,我按照各种方式,但无法解决这个问题。
原文由 kenpeter 发布,翻译遵循 CC BY-SA 4.0 许可协议
您需要卸载它,因为您使用的签名与原始签名不同。如果它不起作用,可能是因为它仍然是为设备上的另一个用户安装的。要完全卸载,请转到设置 -> 应用程序 -> HAgnostic News -> 选项(右上角的三个点) -> 为所有用户卸载