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 無從下手,報錯信息太少,這時需要打開log輸出日志 --stacktrace -info
然后再次運行項目,這時會有l(wèi)og輸出,如果里面有亂碼,按照如下操作來配置一下
在Android studio的目錄下的bin目錄下
如 : android-studiobinstudio64.exe.vmoptions(這個文件)
打開這個文件在最后一行添加 -Dfile.encoding=UTF-8 參數(shù),定義所有文件的編碼為 UTF-8 問題解決
重啟as,運行項目,編譯可能時間久一點,這次直接成功了,沒有上面的那個錯誤了,as4.1的bug讓人無從下手(哈哈哈)
如果還報錯,那么仔細(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. python如何實現(xiàn)word批量轉(zhuǎn)HTML2. python excel和yaml文件的讀取封裝3. 利用單元測試對PHP代碼進行檢查4. python3實現(xiàn)往mysql中插入datetime類型的數(shù)據(jù)5. Java8內(nèi)存模型PermGen Metaspace實例解析6. python爬蟲實戰(zhàn)之制作屬于自己的一個IP代理模塊7. moment轉(zhuǎn)化時間戳出現(xiàn)Invalid Date的問題及解決8. 如何對php程序中的常見漏洞進行攻擊9. python 實現(xiàn)圍棋游戲(純tkinter gui)10. Python實現(xiàn)http接口自動化測試的示例代碼
