redex icon indicating copy to clipboard operation
redex copied to clipboard

OSError: [Errno 8] Exec format error: '/tmp/redex.tqzdAe/redex-all'

Open androidsihai1 opened this issue 3 years ago • 0 comments

当我用redex执行下面的压缩apk命令时候,发现有报错,无法编译通过,求大神解答 redex --sign -s ReDexSample/keystore/debug.keystore -a androiddebugkey -p android -c redex-test/stripdebuginfo.config -P ReDexSample/proguard-rules.pro -o redex-test/strip_output.apk ReDexSample/build/outputs/apk/debug/ReDexSample-debug.apk --android-sdk-path /Users/android_andy/Library/Android/sdk/build-tools/29.0.2

报错信息如下 Traceback (most recent call last): File "/tmp/redex.tqzdAe/redex.py", line 1262, in with_temp_cleanup(lambda: run_redex(args), args.always_clean_up) File "/private/tmp/redex.tqzdAe/pyredex/utils.py", line 62, in with_temp_cleanup fn() File "/tmp/redex.tqzdAe/redex.py", line 1262, in with_temp_cleanup(lambda: run_redex(args), args.always_clean_up) File "/tmp/redex.tqzdAe/redex.py", line 1241, in run_redex run_redex_binary(state, exception_formatter, output_line_handler) File "/tmp/redex.tqzdAe/redex.py", line 379, in run_redex_binary raise err File "/tmp/redex.tqzdAe/redex.py", line 374, in run_redex_binary run() File "/tmp/redex.tqzdAe/redex.py", line 334, in run proc, handler = bintools.run_and_stream_stderr(prefix + args, env, pass_fds) File "/private/tmp/redex.tqzdAe/pyredex/bintools.py", line 195, in run_and_stream_stderr proc: PopenType = subprocess.Popen( File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/tmp/redex.tqzdAe/redex-all'

androidsihai1 avatar Feb 16 '22 11:02 androidsihai1