Android studio Failed to resolve: runtime
这种问题是仓库配置有问题,可能少了什么仓库,在项目的build.gradle中配置如下信息:不要照抄,根据需要的仓库去配置
allprojects { repositories { google() jcenter() maven { url 'https://dl.google.com/dl/android/maven2/' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' } maven { url 'https://jitpack.io' } }}