我正在制作一个与 Firebase 集成的 Kotlin Android Studio 项目。我将 Firebase 说明中列出的所有所需行添加到项目级别和应用级别的 build.gradle 中。
但这不包括我的项目似乎需要的任何依赖项,我在尝试构建时收到错误和这些警告:
我的应用的声明的依赖项列表模块仅具有两个 Firebase 依赖项,而不具有上述警告列出的任何依赖项:
我注意到我认为所有模块中需要一些依赖项:
有没有办法将它们添加到我的应用程序模块文件夹中?我不确定它是否是这样工作的,所以请告诉我。
如果不是这样,请让我知道如何将所有这些必需的依赖项快速添加到我的项目中(最好不要手动搜索每个项目的存储库 URL 等),以便我可以同步和构建而不会出现任何错误。
I have a Kotlin Android Studio project I am making that integrates with Firebase. I added all the lines required listed in Firebase's instructions into build.gradle for both the Project level and the App level.
But this doesn't include any of the dependencies my project seems to need, I get an error when trying to build and these warnings:
The Declared Dependencies list for my app module only has the two Firebase dependencies, and not any of the dependencies as listed by the above warnings:
I noticed there are some dependencies I assume I need in All Modules:
Is there a way I can add those into my app module folder? I am not sure if that's how it works so let me know.
If this is not the way, please let me know how I can add all these required dependencies quickly onto my Project (preferrably without manually searching each one's repository url and such) so that I can Sync and Build without any errors.
发布评论
评论(1)
Gradle Sync 刚刚成功,发生了以下情况:
以下是我为修复所有同步警告和构建错误所做的操作:
仅此而已。之后,Gradle Sync 这次花了很长时间,成功完成,没有任何错误,并且 Build 工作得很好,运行得很好,符合预期。
The Gradle Sync was just now successful, here's what happened:
Here's what I did to fix all the Sync Warnings and Build errors:
And that was all. After that the Gradle Sync took a long time this time and completed successfully without any errors, and the Build worked as well and ran fine as expected.