gpt4 book ai didi

android - Android Gradle 中的 'resource-generating task' 是什么?

转载 作者:行者123 更新时间:2023-11-29 01:24:48 25 4
gpt4 key购买 nike

This reddit 线程对我的一个 problems 有一个解决方案和 this评论

...a better option is to create a task which copies the file into "$project.buildDir/readme/res/raw/", register that folder with the Android plugin as a generated resource root, and register the task with the Android plugin as resource-generating task.

似乎在建议一种更好的方法,但我不确定“注册为资源生成任务”是什么意思。

最佳答案

他们可能指的是 variant.registerResGeneratingTask。这似乎没有公开记录,因此可能会发生变化,但它被各种第三方插件使用,例如 this one .

关于android - Android Gradle 中的 'resource-generating task' 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34650444/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com