Tôi nhận được sau Lỗi khi thêm Firebse từ xa Config SDK trong Gradle nộpKhông thể giải quyết: biên dịch 'com.google.firebase: căn cứ hỏa lực-config: 9.2.1'
compile 'com.google.firebase:firebase-config:9.2.1'
Nó sẽ hiển thị lỗi của Lỗi : (25, 13) Không thể giải quyết: com.google.firebase: căn cứ hỏa lực-config: 9.2.1 Show vào file
hiện trong hộp thoại cấu trúc dự án
Gradle file:
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'
Bạn đã thêm classpath 'com.google.gms: google-services: 3.0.0' vào tệp gốc build.gradle của bạn –
bạn có thể gửi chính xác nơi bạn thêm dòng này không? chúng ta cần đảm bảo rằng ở đúng vị trí. –
Đăng cấu trúc * gradle * của bạn. –