![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 1062 阅读 · 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 · 1081 阅读 · 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 · 2789 阅读 · 1 评论