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中写死了绝对路径

替换为自己的即可。

博客CSDN
微信公众号
我的简书
我的GitHub,麻喜欢的话给个star吧

你可能感兴趣的:(开发工具/技巧)