昨日は、私がこれに私のGoogleサービスのGradleプラグインを更新:その後com.google.gmsにアップデートした後のGradleの例外を取得:グーグルのサービス:3.0.0
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
}
は、私は、エラーの下に取得しています私devDebug
味のビルド:
defaultConfig {
applicationId 'com.example.android'
multiDexEnabled true
minSdkVersion 16
targetSdkVersion 24
versionCode 47
versionName "1.3.2"
signingConfig signingConfigs.myConfig
renderscriptTargetApi 24
renderscriptSupportModeEnabled true
}
buildTypes {
debug {
applicationIdSuffix = ".dev"
resValue "string", "app_name", "example-debug"
}
release {
minifyEnabled false
shrinkResources false
resValue "string", "app_name", "example"
signingConfig signingConfigs.myConfig
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
dev {
// dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
// to pre-dex each module and produce an APK that can be tested on
// Android Lollipop without time consuming dex merging processes.
minSdkVersion 21
}
prod {
// The actual minSdkVersion for the application.
minSdkVersion 16
}
}
:
Error:org.gradle.api.GradleException: No matching client found for package name 'com.example.android.dev'
ここでは、私のアプリレベルbuild.gradle
ファイルの関連部分です
このエラーは私のprodRelease
フレーバービルドには含まれていません。どうすれば解決できますか?
デバッグビルドには、本番ビルドとは異なるアプリケーションIDがあります。そのアプリIDを持つAndroidアプリをFirebaseコンソールに追加し、新しい設定JSONを取得します。 –
@EugenPechanecデバッグビルドのアプリケーションIDを登録すると、すべてのビルドタイプとフレーバーで機能しますか? –
google-services.jsonには、ダウンロード時にコンソールからのすべての情報が含まれるので、はい。 –