從其他地方拷貝過來的項目茵汰,運行報了下面的錯
Could not GET 'https://dl.bintray.com/umsdk/release/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
圖片.png
參考鏈接:https://zhuanlan.zhihu.com/p/443257960
解決方案:
在android/build.gradle中,在下面的的三個中哪個行用哪個嘀韧,三個都試一下
// maven { url 'https://dl.bintray.com/umsdk/release' }
// maven { url 'https://status.bintray.com/umsdk/release' }
maven { url 'https://jcenter.bintray.com/umsdk/release' }
圖片.png