google-services:3.1.1 to 3.2.0从那时起切换我收到以下警告
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
我在我的gradle控制台中看到该JSON文件是从正确的位置解析的,因为如果你没有使用任何口味,它是预期的.
Parsing json file: C:\testApp\app\google-services.json
所以建筑工作正常.
但我真的很喜欢干净的控制台输出,所以如何删除这个似乎不需要的警告呢?
我需要从github 上的这个目录创建一个 android studio 项目。我尝试了VCS-> Checkout from Version Controlin Android Studio,但存储库中没有此目录的 url,因此我不确定是否热衷于克隆此子目录。
我还尝试下载整个存储库,执行File-> New-> Import Projectin Android Studio,然后选择 messages 子目录作为要导入的文件夹。这显示了构建进度条,但完成后,没有导入项目。
我该怎么做呢?
我有 2 种构建类型的项目。每个构建类型都有特定的applicationIdSuffix。
构建类型:开发,applicationIdSuffix= .dev
BuildType : prod , applicationIdSuffix= .prod
在 Firebase 控制台中,我为 build type = dev创建应用程序。
结果我下载了文件google-services.json。我把它放进去c:\myproject\android\app\
在这个文件中 "package_name": "com.myproject.dev"
好的。这是工作。
现在我在同一个项目的Firebase 中,我需要使用另一个 buildType = prod创建另一个应用程序。
结果我下载了新文件:google-services.json. 在这个文件中"package_name": "com.myproject.prod"
我需要把第二个文件google-services.json放在哪里?