Android 缓存问题

> Task :app:packageRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:packageRelease'.

> 1 exception was raised by workers:

 [java.io.UncheckedIOException](java.io.UncheckedIOException): [java.io.IOException](java.io.IOException): Execution of compression failed.

我的解决方案是删除了/用户/(电脑名)/ 目录下的 .android文件夹

  • .android是隐藏文件,需要com+shift+. 显示/隐藏 文件夹

也可以在终端执行命令

 sudo rm -r .android

随后输入电脑密码即可

你可能感兴趣的:(Android 缓存问题)