Saturday, 3 August 2019

Gradle regression when looking for google-services.json?

I updated to the last Android Studio, which led me to update gradle as well. While I had had to change the location of the google-services.json file in the past to adapt for changes in gradle, now it seems that gradle is looking for this file in the old location

./MyProject/app/google-services.json

The problem is that this location does not make sense anymore since I have multiple flavor with different google-services.json files. Now, I placed them in

./MyProject/app/src/MyFlavor/release/google-services.json
./MyProject/app/src/MyFlavor/debug/google-services.json

How can I deal with this new "regression"?



from Gradle regression when looking for google-services.json?

No comments:

Post a Comment