天天看點

build.gradle導入com.android.support:percent 的依賴錯誤

前面段時間系統出了問題,于是重裝了系統,Android Studio昨天也搞好了,今天早上來重新搞Android項目要導入com.android.support:percent 依賴的時候,就報了下面圖的bug。

build.gradle導入com.android.support:percent 的依賴錯誤

後來查了資料,是Android SDK裡的沒有我導入這個版本的,是以隻要找到自己已有的版本号就可以了,在這裡我貼上我的路徑,來給大家做個參考

build.gradle導入com.android.support:percent 的依賴錯誤
build.gradle導入com.android.support:percent 的依賴錯誤

找到自己導入依賴的地方之後,隻要把版本号改對再sync就解決了!是不是很簡單!,覺得不錯的話,就頂個吧!

build.gradle導入com.android.support:percent 的依賴錯誤