這篇文章主要講解了“idea使用方式總結(jié)”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“idea使用方式總結(jié)”吧!
目前成都創(chuàng)新互聯(lián)公司已為數(shù)千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、虛擬空間、網(wǎng)站托管維護、企業(yè)網(wǎng)站設(shè)計、丁青網(wǎng)站維護等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。
1、idea的open默認打開的是java項目,如果是gradle工程需要import
2、run/debug Configuration需要選擇main那個選項,編譯輸出路徑需要修改
3、在刷新gradle的時候會有如下報錯
現(xiàn)象 idea打開gradle工程時出現(xiàn)如下的錯誤: Error:The newly created daemon process has a different context than expected. Java home is different. Expecting: 'C:\Program Files\Java\jdk1.7.0_40' but was: 'C:\Program Files\Java\jdk1.7.0_40\jre'. Please configure the JDK to match the expected one. 問題分析 All i understood is gradle is using JRE and IDEA is using JDK and due to that two JAVA_HOME’s are different and giving errors. 與gradle版本沒有關(guān)系 解決方法: I am using Intellij 15.06, what solved my problem is just go to the directory, JAVA_HOME > jre > lib, and rename the tool.jar to tool.jar.bak, and then try to start a project or import a project again, at last, do not forget to rename it back to tool.jar.
4、由于依賴包更新,需要重新引入,但是刪除舊包之后重新構(gòu)建卻無法自動下載新包,即使是重啟idea也不會自動下載,其實重新下載的方法很簡單,右鍵項目->maven->reimport
感謝各位的閱讀,以上就是“idea使用方式總結(jié)”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對idea使用方式總結(jié)這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!