Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.43k stars 809 forks source link

mapping line info is error # {"id":"sourceFile","fileName":"..."} #480

Open Rkhcy opened 2 years ago

Rkhcy commented 2 years ago

异常类型:app 编译异常,生成补丁包报错

手机型号:

手机系统版本:

Robust版本:0.4.99

Gradle版本:7.3

系统:mac

堆栈/日志:

Task :app:transformClassesWithAutoPatchTransformForRelease FAILED

FAILURE: Build failed with an exception.

Rkhcy commented 2 years ago

从某个 R8 版本开始,mapping.txt 文件中会生成带 # 的注释信息,会导致制作 patch 失败,请问在不手动屏蔽 mapping.txt 中注释信息的情况下,如果成功制作 patch

SharkChao commented 2 years ago

+1

wojiaosuxiaobai commented 1 year ago

mapping文件去掉注释 ^\s#\s{.}$ //除去注释 ^\s(?=\r?$)\n //除去空行 我目前是直接处理的mapping文件内容

wojiaosuxiaobai commented 1 year ago

https://github.com/wojiaosuxiaobai/Robust 我修改了mapping文件读取的规则,可以支持注释和空行