我收到错误 - “无法安装-写入所有 apk”

Arn*_*nav 13 android compiler-errors android-studio

我正在开发 android studio 项目,完成代码后,我在我的 android 设备上运行,它显示错误 - 安装失败 - 安装失败。无法安装该应用程序。apk 列表:[0] 'app\build\outputs\apk\debug\app-debug.apk' 安装失败,原因是:“无法安装-写入所有 apk”

它工作正常,因为我已经多次测试了该应用程序,但现在它显示错误。我该如何解决这个问题?

Nit*_*ish 7

当设备没有足够的存储空间来安装 apk 时,通常会出现此错误。
检查您的手机存储,清理一些内存以确保有足够的内存来完全安装/运行您的应用程序


小智 6

This is happening because of less memory on the emulator device how to solve it :-

  1. Go to device manager
  2. Click on emulator setting(The pen symbol)
  3. Then click on advance settings
  4. Increase the internal memory of the device to at least 2Gb

问题应该得到解决。