1. 程式人生 > >androidstudio2.3升級到3.2遇到的坑

androidstudio2.3升級到3.2遇到的坑

androidstudio2.3升級到3.2

好久不做安卓的專案了,公司今天需要對原來的安卓專案進行升級維護。下載新版的androidstudio3.2版本用的是gradle4.5。distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip 匯入原來的專案,一段時間的downloading、build之後,報了一片紅,各種依賴包找不到。 Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.xxx. 查了半天,所有配置都是對的,離線模式(offline work)也關了.

無頭蒼蠅,亂撞一番,stackoverflow 有個回答,確定是網被牆了圖片描述

開啟shadowsocks,把http proxy的代理指向本地。圖片描述

重新build,還是沒好。然後關閉studio 重新開啟,就完美build好了。