有什么办法可以让某些产品口味没有google-services.json吗?

Is there any way to have no google-services.json for some of product flavors?

我的一些产品风格适用于 Firebase,而另一些则不能。但是,如果我将 classpath 'com.google.gms:google-services:4.2.0' 添加到我的依赖项中,则每个产品风味都需要一个 google-services.json。 有什么方法可以指定只有我的某些产品风格适用于 Firebase 吗?

我的建议是为不使用它的产品口味添加一个模拟 google-services.json 文件。有没有更好的方法?

我认为您可以在这些风格中放置一个空的 google-services.json 文件。