这是我的项目:https://github.com/kenpeter/my_hak_news https://github.com/kenpeter/my_hak_news,它是直接复制https://github.com/grigio/HAgnostic-News https://github.com/grigio/HAgnostic-News.
git克隆https://github.com/kenpeter/my_hak_news 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 https://github.com/grigio/HAgnostic-News/issues/1,我尝试了各种方法,但无法解决这个问题。
我的项目中也遇到了这个问题。
这对我有帮助,所以希望能帮助其他人:
adb uninstall "com.domain.yourapp"
解决方案来自这里。 https://stackoverflow.com/questions/31489567/manually-installing-an-updated-apk-fails-with-signatures-do-not-match-the-previ/31489883#31489883
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)