我在Gradle文件中添加Firebse远程配置SDK时出现以下错误
compile 'com.google.firebase:firebase-config:9.2.1'
它将显示错误错误:(25,13)无法解析:com.google.firebase:firebase-config:9.2.1
在Project Structure对话框的FileShow中显示
Gradle文件:
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.bazingalabs.firebaseremoteconfig" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs',include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.google.firebase:firebase-config:9.2.1' } apply plugin: 'com.google.gms.google-services'
错误Image
解决方法
@RiyazAhamed谢谢.解决方案是从sdk经理更新“Google Play服务”和“Google Repository”并重启Android工作室.