把项目拷贝一份到另一个文件夹下,然后用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?

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

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

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