時間:2017年7月20日 14:00左右垢啼,重新編譯了一下Android Studio菩鲜,報出了一個匪夷所思的錯誤:
> Could not resolvecom.tencent.mm.opensdk:wechat-sdk-android-with-mta:+.
Required by:
project :LibraryFromWeChat
> Could not resolvecom.tencent.mm.opensdk:wechat-sdk-android-with-mta:+.
> Failed to list versions forcom.tencent.mm.opensdk:wechat-sdk-android-with-mta.
> Could not list versions using M2 pattern 'https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
> Could not GET 'https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master/com/tencent/mm/opensdk/wechat-sdk-android-with-mta/'. Received status code 400 from server: Bad Request
早上還好好的惭蹂,為啥下午就莫名其妙報出這個錯誤呢葵礼∪眩看錯誤內(nèi)容烧栋,應(yīng)該是AS找不到指定的依賴庫写妥,但是之前也編譯緩存過啊,這種情況應(yīng)該就是as發(fā)現(xiàn)了新版本审姓,才會主動連接版本服務(wù)器獲取的珍特。
于是翻查了微信的在線文檔:
在使用方法上并沒什么變化。這時注意到微信是使用jcenter管理的魔吐,于是上jcenter找到wechat-sdk-android-with-mta
發(fā)現(xiàn):
果然是有新版本扎筒,而且是2017年7月20日,也就是今天更新的3昴贰嗜桌!
估計問題就出在這里,于是手動將
compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
更改為
compile'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.3.4'
也就是降回1.3.4版本辞色,as編譯通過9浅琛!
看來是1.3.5版本遇到發(fā)布問題了相满,希望微信開放平臺sdk有關(guān)同學(xué)看看是什么問題了层亿。