FAILURE: Build failed with an exception
阿新 • • 發佈:2019-02-18
錯誤一:
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中寫死了絕對路徑
替換為自己的即可。