配置的保留class文件,最终还是没有保存
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
- Domain
- build-system, devtools
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
area-Bzlmod team-ExternalDeps type: bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bazelbuild/bazel#31291 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bradcypert/plum#53 ·