Android studio编译出现Failed to finalize session : INSTALL_FAILED_INVALID_APK
1、问题
我把项目里面的部分java文件导成jar文件,然后复制这个项目然后用Androi studio打开,导入jar编译出现这个错误
Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split lib_slice_7_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?
2、解决办法
找到项目的目录,删除下面的3个文件
rm -rf .idea/
rm -rf .gradle/
rm -rf build
然后点击Build,然后点击Clean Project, ok ok
赞 (0)