1

i try to implement flavors by this guide: https://proandroiddev.com/advanced-android-flavors-part-1-building-white-label-apps-on-android-ade16af23bcf

but i get this error:

No matching client found for package name 'com.example.client1'

this is my gradle:

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'
    }
}

and this is the source tree:

src/
    main/
    client1/

any help will be very appreciated!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
levi
  • 1,077
  • 2
  • 11
  • 24

1 Answers1

0

It means you have only one google-services.json

you need to add one more google-services.json file for client1