Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

配置的保留class文件,最终还是没有保存

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, groovy

Research direction

Start at the inject logic shown in the issue, especially the construction of baseDir and the call to FileUtils.clearFile(rootFile). Trace how repeated inject runs handle previously extracted class files and how the retention setting is applied. Done means configured class files remain available after multiple inject runs instead of leaving only an empty directory.

Written by the indexing model from the issue text.

Description

发现多次执行inject后
会删除之前解压的class文件,导致最终只剩下一个空文件夹
def baseDir = new StringBuilder().append(mProject.projectDir.absolutePath)
.append(File.separator).append(INJECTOR)
.append(File.separator).append(mVersionName)
.append(File.separator).append(jarName).toString()

File rootFile = new File(baseDir)
FileUtils.clearFile(rootFile)
if (!rootFile.mkdirs()) {
Logger.e("mkdirs ${rootFile.absolutePath} failure")
}

Dominant language
Groovy
Stars
93
Forks
11
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.