美文网首页
Android Studio打开拷贝的项目后报错INSTALL_

Android Studio打开拷贝的项目后报错INSTALL_

作者: beatzcs | 来源:发表于2019-07-10 17:02 被阅读0次

把项目拷贝一份到另一个文件夹下,然后用Android Studio打开没有问题,用模拟器和真机跑的时候就一直弹窗提示错误,跑不起来:

Installation failed with message Failed to commit install session 145161859 with command cmd package install-commit 145161859. Error: INSTALL_FAILED_INVALID_APK: Split lib_slice_4_apk was defined multiple times.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?

异常截图.png

解决办法一:
删除掉app下的build文件夹


删除build文件夹.png

解决办法二:
1.Clean Project
2.Rebuild Project。


clean-rebuild.png

再次运行项目,就可以成功跑起来了~

相关文章

网友评论

      本文标题:Android Studio打开拷贝的项目后报错INSTALL_

      本文链接:https://www.haomeiwen.com/subject/qvohkctx.html