redex
redex copied to clipboard
redex-all crashed with exit code 1
python3 redex.py -c default.config -o /Users/leo.zhang/Desktop/json/release/mcc_origin_out.apk /Users/leo.zhang/Desktop/json/release/mcc_origin.apk
error message:
[ERROR ] Expecting value: line 9 column 45 (char 212)
[WARNING ] Could not find an SDK jar: Could not find SDK path, searched Env, Buck
Trace settings:
TRACEFILE=
SHOW_TIMESTAMPS=
SHOW_TRACEMODULE=
TRACE_METHOD_FILTER=
TRACE_CLASS_FILE=
TRACE_CLASS_NAME=
error: No ProGuard keep rules provided. Redex optimizations will not preserve semantics without accurate keep rules.
Traceback (most recent call last):
File "/Users/leo.zhang/AndroidProject/redex/redex.py", line 1345, in
please help check this
Somehow you seem to have a JSON parser that doesn't like the '#' comments in the default.config file. Can you edit it, and remove '#' and everything that follows in each line, and see if that fixes things for you?
Somehow you seem to have a JSON parser that doesn't like the '#' comments in the default.config file. Can you edit it, and remove '#' and everything that follows in each line, and see if that fixes things for you?
I remove the '#' in the comment, it doesn't work, it does not have this error
[ERROR ] Expecting value: line 9 column 45 (char 212)
others still have the same error message
I remove the '#' in the comment, it doesn't work [...]
Please try removing the entire comment, not just the leading '#'. The content needs to become legal JSON.
Yes, I remove all the comment
this is the detail config, but still have the same error message
{ "redex" : { "passes" : [ "ReBindRefsPass", "BridgeSynthInlinePass", "FinalInlinePassV2", "DelSuperPass", "SingleImplPass", "MethodInlinePass", "StaticReloPassV2", "RemoveEmptyClassesPass", "ShortenSrcStringsPass", "RegAllocPass" ] } }
I remove the '#' in the comment, it doesn't work [...]
Please try removing the entire comment, not just the leading '#'. The content needs to become legal JSON.
Yes, I remove all the comment
this is the detail config, but still have the same error message
{ "redex" : { "passes" : [ "ReBindRefsPass", "BridgeSynthInlinePass", "FinalInlinePassV2", "DelSuperPass", "SingleImplPass", "MethodInlinePass", "StaticReloPassV2", "RemoveEmptyClassesPass", "ShortenSrcStringsPass", "RegAllocPass" ] } }
is there any update?
I remove the '#' in the comment, it doesn't work [...]
Please try removing the entire comment, not just the leading '#'. The content needs to become legal JSON.
Yes, I remove all the comment
this is the detail config, but still have the same error message
{ "redex" : { "passes" : [ "ReBindRefsPass", "BridgeSynthInlinePass", "FinalInlinePassV2", "DelSuperPass", "SingleImplPass", "MethodInlinePass", "StaticReloPassV2", "RemoveEmptyClassesPass", "ShortenSrcStringsPass", "RegAllocPass" ] } }
is there any update?
I have the same problem, based on the master code
I have the same problem
/Users/user/redex/redex.py:24: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
from pipes import quote
Trace settings:
TRACEFILE=
SHOW_TIMESTAMPS=
SHOW_TRACEMODULE=
TRACE_METHOD_FILTER=
TRACE_CLASS_FILE=
TRACE_CLASS_NAME=
error: No ProGuard keep rules provided. Redex optimizations will not preserve semantics without accurate keep rules.
Traceback (most recent call last):
File "/Users/fudonghui/redex/redex.py", line 1345, in
So it seems like you could workaround the first error:
[ERROR ] Expecting value: line 9 column 45 (char 212)
But what remains is the second error:
error: No ProGuard keep rules provided. Redex optimizations will not preserve semantics without accurate keep rules.
You need to provide ProGuard keep rules.
So it seems like you could workaround the first error:
[ERROR ] Expecting value: line 9 column 45 (char 212)
But what remains is the second error:
error: No ProGuard keep rules provided. Redex optimizations will not preserve semantics without accurate keep rules.
You need to provide ProGuard keep rules.
How to solve this? I am also facing this problem
python redex.py --redex-binary build-cmake/redex-all.exe -o oouutt.apk C:\Users\hp\Desktop\app.apk
[WARNING ] No embedded files, please add manually!
[ERROR ] expected str, bytes or os.PathLike object, not NoneType
Trace settings:
TRACEFILE=
SHOW_TIMESTAMPS=
SHOW_TRACEMODULE=
TRACE_METHOD_FILTER=
TRACE_CLASS_FILE=
TRACE_CLASS_NAME=
error: No ProGuard keep rules provided. Redex optimizations will not preserve semantics without accu
rate keep rules.
Traceback (most recent call last):
File "D:\redex\redex\redex.py", line 1399, in
https://fbredex.com/docs/proguard contains information on how to pass Proguard rules to Redex.