在使用Android模拟器的时候,安装apk会出现内存不足的提示,提示日志如下:
代码语言:javascript复制Installation did not succeed.
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
List of apks:
[0] '/xxx.apk'
The device needs more free storage to install the application (extra space is needed in addition to APK size).
Retry
Failed to launch an application on all devices
我们可以在模拟器上选择【Duplicate】打开模拟器高级设置,
然后,点击【Show Advanced Settings】按钮打开高级设置,将模拟器的内存改大即可,如下图。
接着,重新启动模拟器即可。