Issue
lkl22
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
google bundleTool 源码里 com.android.bundle.* 相关的代码爆红
google bundleTool 源码里 com.android.bundle.* 相关的代码爆红解决在builde.gradle里添加依赖:// The repackaging rules are defined in the "shadowJar" task below.dependencies { compileOnly files(project.buildDir.path + "/classes/java/main") ...}...原创 2022-02-28 12:56:27 · 1162 阅读 · 0 评论 -
groovy 替换文件指定内容
groovy 替换文件指定内容替换指定文件的部分内容脚本static def replaceFileText(file, oldText, newText) { String text = file.text.replaceAll(oldText, newText) file.withPrintWriter { printWriter -> printWriter.print(text) }}使用范例gradle.startParameter.get原创 2022-02-28 12:44:43 · 1289 阅读 · 0 评论 -
‘buildSrc‘ cannot be used as a project name as it is a reserved name.
‘buildSrc’ cannot be used as a project name as it is a reserved name.可以尝试使用以下方法解决:打开你的 settings.gradle / settings.gradle.kts 文件将 “buildSrc” 从 included modules 移除重新编译原创 2022-02-28 12:38:37 · 2982 阅读 · 1 评论
分享