I know this has been asked a bunch of times on SO, I have tried answers from most if not all of SOs questions. My problem is that I have an android app with two different flavours, a client one and a normal one, that way, therefore I had a product flavor for the client version setup like so in my build.gradle file:
clientConfig {
minSdkVersion 15
applicationIdSuffix '.client'
targetSdkVersion 26
versionCode 1
versionName '0.0.23'
dimension 'cl'
}
I then linked both apps to my firebase project and downloaded the google-services json file. The file is placed as follows:
But when I sync the gradle files, I get the following error:
What is it that Im doing wrong?
Don't know if you have already your answer by yourself, but I think your folder and your product flavor name have to be the same: here, you have client as your folder and clientConfig as your product flavor name. Change clientConfig by client
我可以通过删除google-services.json文件并将其从gradle中删除来解决此问题,然后在Android Studio中使用Firebase帮助程序进行同步后再次添加了它,并能够成功构建
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.