FAILURE: Build failed with an exception

错误一:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tvideo:makeJar'.
> java.io.IOException: Can't read [C:\Program Files (x86)\Java\jdk1.8.0_45\jre\lib\rt.jar] (No such file or directory)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

把相关文件C:\Program Files (x86)\Java\jdk1.8.0_45\jre\lib\rt.jar拷贝到该目录之后,以为正常了,之后又出现

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tvideo:makeJar'.
> java.io.IOException: Can't read [G:\Android\android-sdk-windows\platforms\android-23\android.jar] (No such file or directory)

不能再拷贝吧,之后发现原来是proguard-rules.pro中写死了绝对路径

FAILURE: Build failed with an exception_第1张图片
image.png

替换为自己的即可。



微信扫一扫关注我的以下微信公众号

【程序猿小白成长记】定期分享各类Java、Android等知识

FAILURE: Build failed with an exception_第2张图片
定期分享IT知识,微信关注程序猿小白成长记!

我的GitHub,麻烦给个star哦
我的CSDN
我的
开发笔记

我的GitHub,麻烦给个star哦 我的CSDN 我的 开发笔记

你可能感兴趣的:(FAILURE: Build failed with an exception)