风格错误 - 找不到包名称的匹配客户端



我尝试通过本指南实现风格:https://proandroiddev.com/advanced-android-flavors-part-1-building-white-label-apps-on-android-ade16af23bcf

但是我收到此错误:

找不到包名称"com.example.client1"的匹配客户端

这是我的毕业生:

android {
compileSdkVersion 28
defaultConfig {
    applicationId 'com.example'
    minSdkVersion 23
    targetSdkVersion 28
    versionCode 19
    versionName '9.7'
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
flavorDimensions "default"
productFlavors {
    ashkelon {
        applicationIdSuffix ".client1"
    }
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

这是源树:

src/
    main/
    client1/

任何帮助将不胜感激!

这意味着你只有一个google-services.json

您需要为客户端再添加一个Google-Services.json文件1

最新更新