amimo / dcc

DCC (Dex-to-C Compiler) is method-based aot compiler that can translate DEX code to C code.
Apache License 2.0
1.13k stars 396 forks source link

dex2c错误 #27

Closed h45251880 closed 4 years ago

h45251880 commented 4 years ago

[ERROR ] dcc: Compile 4.apk failed! Traceback (most recent call last): File "dcc.py", line 463, in dcc_main(infile, filtercfg, outapk, do_compile, project_dir, source_archive) File "dcc.py", line 388, in dcc_main compiled_methods, errors = compile_dex(apkfile, filtercfg) File "dcc.py", line 349, in compile_dex method_filter = MethodFilter(filtercfg, d) File "dcc.py", line 111, in init self._load_filter_configure(configure) File "dcc.py", line 133, in _load_filter_configure self._compile_filters.append(re.compile(line)) File "/usr/lib/python3.6/re.py", line 233, in compile return _compile(pattern, flags) File "/usr/lib/python3.6/re.py", line 301, in _compile p = sre_compile.compile(pattern, flags) File "/usr/lib/python3.6/sre_compile.py", line 562, in compile p = sre_parse.parse(p, flags) File "/usr/lib/python3.6/sre_parse.py", line 855, in parse p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0) File "/usr/lib/python3.6/sre_parse.py", line 416, in _parse_sub not nested and not items)) File "/usr/lib/python3.6/sre_parse.py", line 502, in _parse code = _escape(source, this, state) File "/usr/lib/python3.6/sre_parse.py", line 401, in _escape raise source.error("bad escape %s" % escape, len(escape)) sre_constants.error: bad escape \L at position 15 请问如何解决?

amimo commented 4 years ago

正则表达写得有问题

h45251880 commented 4 years ago

正则表达写得有问题

getLuaCode()Ljava/lang/String;>.;getLuaCode()\Ljava/lang/String;. 正则表达是这样写吗

amimo commented 4 years ago

正则写法请自行研究