打包失败Error:A problem was found with the configuration of task ':app:packageRelease'. > File 'F:\workSpace2\Android\app\build\intermediates\res\resources-release-stripped.ap_' specified for property 'resourceFile' does not exist.
今天早上一打包就出现了这个问题,之前一直没有,百度了一下是这个属性导致的( shrinkResources true)
shrinkResources true.打包的时候会去删除一些不必要 的文件,结果就打包失败了。
解决方法 shrinkResources false
Paste_Image.png Paste_Image.png
网友评论