使用AndroidStudio打jar包时,双击makeJar打包时我遇到下面的问题,完整错误日志:
:app:makeJar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Cannot expand ZIP 'G:\oroar2\app\build\intermediates\bundles\release\classes.jar' as it does not exist.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我的解决方法:
由于网上AndroidStudio版本问题,原先classes.jar的位置发生改变,由原先的\intermediates\bundles\release\ 变成了\intermediates\packaged-classes\release\,针对这个问题找了好久才发现,希望能够帮助到更多需要的人。
网友评论