这是我的项目:https://github.com/kenpeter/my_hak_news,这是直接拷贝https://github.com/grigio/HAgnostic- News。
Git克隆https://github.com/kenpeter/my_hak_news,然后运行react- native run-android
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,我遵循各种方法,但是无法解决此问题。
您需要卸载它,因为您使用的签名与原始签名不同。如果它不起作用,可能是因为仍为设备上的另一个用户安装了它。要完全卸载,请转到“设置”->“应用程序”->“ HAgnostic新闻”->“选项”(右上角的三个点)->“为所有用户卸载”