java.lang.RuntimeException: can,t modified Field:VERSION_NAME(Ljava/lang/String;), in class :Lcom/zxx/andfixdemo/BuildConfig;
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
脚本命令有问题
使用:apkpatch.bat -f af2.apk -t af1.apk -o output1 -k andfix.keystore -p abc123 -a zxx -e abc123
报错:
java.lang.RuntimeException: can,t modified Field:VERSION_NAME(Ljava/lang/String;), in class :Lcom/zxx/andfixdemo/BuildConfig;
at com.euler.patch.diff.DiffInfo.addModifiedFields(DiffInfo.java:88)
at com.euler.patch.diff.DexDiffer.compareField(DexDiffer.java:125)
at com.euler.patch.diff.DexDiffer.compareField(DexDiffer.java:101)
at com.euler.patch.diff.DexDiffer.compareField(DexDiffer.java:95)
at com.euler.patch.diff.DexDiffer.diff(DexDiffer.java:32)
at com.euler.patch.ApkPatch.doPatch(ApkPatch.java:68)
at com.euler.patch.Main.main(Main.java:97)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the shown apkpatch.bat command and the af2.apk/af1.apk inputs. Start at com.euler.patch.Main.main, ApkPatch.doPatch, and the DiffInfo.addModifiedFields and DexDiffer.compareField stack frames; done means the VERSION_NAME failure is explained and the command or tool behavior is corrected and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100