我决定在我的 android 中配置离线构建依赖项。我正在关注文档 https://developer.android.com/studio/intro/studio-config#offline指导。
I successfully did the "Download and unzip offline components" step as the first step.
I have to "Include offline components in your Gradle project" as the second step
. enter image description here
但不幸的是,我无法找到我必须在其中创建文件并将代码粘贴到其中的确切文件夹。 我的文件夹 View 是这样的。
谁能告诉我我到底需要做什么?我应该自己创建一个文件夹还是需要在其他地方探索? 我正在使用安卓 3.5
最佳答案
您只需在此位置创建 init.d
文件夹并将您的初始化脚本放入其中。
请注意,对于 Groovy 脚本,脚本本身需要具有 .gradle
扩展名,对于 Kotlin 脚本,则需要具有 .gradle.kts
扩展名。
关于android - 我无法在我的 .gradle 文件夹中找到 (init.d) 文件夹!在哪里搜索它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58188483/