新建項(xiàng)目失敗,出現(xiàn):
Failed to resolve: com.android.support:appcompat-v7:28.+
如下圖:

報(bào)錯(cuò)截圖
解決辦法:
在project級(jí)的build.gradle中添加紅框里的內(nèi)容

build.gradle
錯(cuò)誤產(chǎn)生原因:
Starting from version 26 of support libraries make sure that the?repositories?section includes a maven section with the "https://maven.google.com" endpoint.