最近在學(xué)著用Android studio,但是發(fā)現(xiàn)我現(xiàn)在的版本是比較舊的,即使8G內(nèi)存,用起來(lái)還是有點(diǎn)卡,敲代碼都沒(méi)有感覺(jué)了。于是,百度了一些,怎么更新。有些人說(shuō),去網(wǎng)上下載jar包,進(jìn)行增量更新?;撕芫脮r(shí)間下載,但是最終還是沒(méi)有更新成功。
東找找,西找找。發(fā)現(xiàn)了一個(gè)最簡(jiǎn)單的方法:
1.在Android Studio安裝目錄/bin/studio.exe.vmoptions文件中追加以下三行內(nèi)容:
-Djava.net.preferIPv4Stack=true
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
2.然后打開(kāi)Android studio,點(diǎn)擊help——》check for update。然后,就會(huì)有下載新版本的彈框,that's easy!