亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Android studio4.1更新后出現(xiàn)的問題詳解

 更新時(shí)間:2020年10月14日 09:25:20   作者:And_My  
這篇文章主要介紹了Android studio4.1更新后出現(xiàn)的問題詳解,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

Android studio4.1更新后出現(xiàn)的問題如下

> Task : app : kaptDebugKotlin FAILED
FAILURE: 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)錯(cuò)信息太少,這時(shí)需要打開log輸出日志 --stacktrace -info

然后再次運(yùn)行項(xiàng)目,這時(shí)會(huì)有l(wèi)og輸出,如果里面有亂碼,按照如下操作來配置一下

在Android studio的目錄下的bin目錄下

如 : android-studio\bin\studio64.exe.vmoptions(這個(gè)文件)

打開這個(gè)文件在最后一行添加 -Dfile.encoding=UTF-8 參數(shù),定義所有文件的編碼為 UTF-8 問題解決

重啟as,運(yùn)行項(xiàng)目,編譯可能時(shí)間久一點(diǎn),這次直接成功了,沒有上面的那個(gè)錯(cuò)誤了,as4.1的bug讓人無從下手(哈哈哈)

如果還報(bào)錯(cuò),那么仔細(xì)看錯(cuò)誤信息,一個(gè)一個(gè)的解決問題

到此這篇關(guān)于Android studio4.1更新后出現(xiàn)的問題詳解的文章就介紹到這了,更多相關(guān)Android studio4.1更新內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論