Android studio4.1更新后出現(xiàn)的問題詳解
Android studio4.1更新后出現(xiàn)的問題如下
> Task : app : kaptDebugKotlin FAILEDFAILURE: Build failed with an exception.wrong:Execution failed for task ’ :app : kaptDebugKotlin’.> A failure occurred while executing org. jetbrains . kotlin. gradle . internal . KaptExecution> java. lang. reflect. InvocationTargetException (no error message)Run with --stacktrace option to get the stack trace. Run with --info or --debug_ option to get more log output. Run with --scan to get full insights.Get more help at https://help. gradle .org
莫名其妙 no error message 無從下手,報(bào)錯信息太少,這時需要打開log輸出日志 --stacktrace -info
然后再次運(yùn)行項(xiàng)目,這時會有l(wèi)og輸出,如果里面有亂碼,按照如下操作來配置一下
在Android studio的目錄下的bin目錄下
如 : android-studiobinstudio64.exe.vmoptions(這個文件)
打開這個文件在最后一行添加 -Dfile.encoding=UTF-8 參數(shù),定義所有文件的編碼為 UTF-8 問題解決
重啟as,運(yùn)行項(xiàng)目,編譯可能時間久一點(diǎn),這次直接成功了,沒有上面的那個錯誤了,as4.1的bug讓人無從下手(哈哈哈)
如果還報(bào)錯,那么仔細(xì)看錯誤信息,一個一個的解決問題
到此這篇關(guān)于Android studio4.1更新后出現(xiàn)的問題詳解的文章就介紹到這了,更多相關(guān)Android studio4.1更新內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. JAMon(Java Application Monitor)備忘記2. SpringBoot+TestNG單元測試的實(shí)現(xiàn)3. Java GZip 基于內(nèi)存實(shí)現(xiàn)壓縮和解壓的方法4. VMware中如何安裝Ubuntu5. Springboot 全局日期格式化處理的實(shí)現(xiàn)6. python 浮點(diǎn)數(shù)四舍五入需要注意的地方7. Docker容器如何更新打包并上傳到阿里云8. IntelliJ IDEA設(shè)置默認(rèn)瀏覽器的方法9. idea配置jdk的操作方法10. 完美解決vue 中多個echarts圖表自適應(yīng)的問題
