相关疑难解决方法(0)

删除Gradle警告:找不到google-services.json

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]
Run Code Online (Sandbox Code Playgroud)

我在我的gradle控制台中看到该JSON文件是从正确的位置解析的,因为如果你没有使用任何口味,它是预期的.

Parsing json file: C:\testApp\app\google-services.json
Run Code Online (Sandbox Code Playgroud)

所以建筑工作正常.

但我真的很喜欢干净的控制台输出,所以如何删除这个似乎不需要的警告呢?

android android-gradle-plugin

16
推荐指数
2
解决办法
1万
查看次数

如何从 github 存储库中的子目录创建 Android Studio 项目

我需要从github 上的这个目录创建一个 android studio 项目。我尝试了VCS-> Checkout from Version Controlin Android Studio,但存储库中没有此目录的 url,因此我不确定是否热衷于克隆此子目录。

我还尝试下载整个存储库,执行File-> New-> Import Projectin Android Studio,然后选择 messages 子目录作为要导入的文件夹。这显示了构建进度条,但完成后,没有导入项目。

我该怎么做呢?

android android-studio

5
推荐指数
1
解决办法
1557
查看次数

安卓。Firebase:不同的 applicationIdSuffix。在哪里保存 google-services.json?

我有 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放在哪里?

android firebase

4
推荐指数
1
解决办法
1835
查看次数