Error:Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations: https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar
打開之前寫的安卓程序芬位,運行肪虎,發(fā)現(xiàn)提示上述內容奶浦,很是奇怪吏颖,之前都好好的刨啸,為啥突然之間就變這樣了垫释,啥都沒動啊瞳腌,clean一下谴忧,再運行還是這樣,只好求助谷歌了努咐,谷歌得到的答案也是相當出人意料苦蒿,原因是因為谷歌的問題。
解決辦法:
就是在build.gradle里面的dependencies中的這部分內容
compile 'com.hyphenate:hyphenate-sdk-lite:3.3.4'
compile 'com.umeng.analytics:analytics:latest.integration'
compile 'com.jakewharton:butterknife:8.8.1'
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.+'
乍一看沒啥問題的渗稍,之前的東西啥都沒有動啊佩迟,當時我也是這樣想的,不應該啊竿屹,之前的都沒問題报强,其實是谷歌搗鬼了,以后這里面不能帶+號拱燃,必須指定詳細的版本才行秉溉,可能你會問 + 號在哪?看好了
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:design:26.+'
就是這兩個的原因碗誉,因為這是之前弄得召嘶,沒問題,后來谷歌必須要求指定版本哮缺,不能帶 + 號弄跌,也許你還會問把 + 號去掉我也不知道是哪個版本啊,很簡單的尝苇,直接整成0就行了铛只,
compile 'com.android.support:appcompat-v7:26.0.0'
compile 'com.android.support:design:26.0.0'
再次運行OK沒毛病。