我的应用程序安装得很好......安装和重新安装以进行测试等。但现在它不再安装......Android Studio 说,
Application Installation Failed
Installation failed with message Failed to
finalize session :
INSTALL_FAILED_INVALID_APK: Split
lib_slice_3_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?
[CANCEL] [OK]
我尝试从我的手机上卸载该应用程序,但它仍然无法重新安装。
此外,我尝试在以前从未安装过的模拟器上重新安装它,但也没有用。
我想我一定是无意中弄乱了一些我不理解的与编译相关的设置(但我没有做过那样的事情)。我不了解编译过程,并且在很大程度上依赖于 Android Studio 来完成。
我一直在为这个开发一个“姊妹”应用程序...我从这个应用程序复制了一些库(.jar 文件,例如 [项目根目录]\app\libs 中的 zixng.jar)到另一个应用程序.我的手机上也安装了其他应用程序……但话又说回来,它不在模拟器上……所以我想这不是问题所在。默普。
感谢您的任何建议或可能的解释。
最佳答案
尝试清理然后再次重建项目。为此,请转到“构建”菜单,这两种工具均已提供。
如果问题没有解决,请尝试使缓存无效并从文件菜单 -> 使缓存无效/重新启动重新启动 Android Studio。
关于android-studio - "APK was defined multiple times", 应用无法通过 Android Studio 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49103597/