AndroidDecompiler icon indicating copy to clipboard operation
AndroidDecompiler copied to clipboard

decompileAPK.sh: command not found

Open 471448446 opened this issue 8 years ago • 5 comments

as the title see,how can solve the problem. i was in the AndroidDecompiler-master file folder,then i run decompileAPK.sh -p xx.apk. the bash show me===> -bash: decompileAPK.sh: command not found.

471448446 avatar Jul 19 '16 01:07 471448446

try chmod +x decompileAPK.sh first

jdkuki avatar Jul 19 '16 20:07 jdkuki

I try chmod +x decompileAPK.sh first,but it did not work. bash: yangchuandeMBP:AndroidDecompiler better$ pwd /Users/better/decompiler/AndroidDecompiler yangchuandeMBP:AndroidDecompiler better$ ls LICENSE boo.apk jd-core-java README.md decompileAPK.sh releaseAPKDecompiler.sh apktool dex2jar astyle files yangchuandeMBP:AndroidDecompiler better$ chmod +x decompileAPK.sh yangchuandeMBP:AndroidDecompiler better$ decompileAPK.sh -p boo.apk -bash: decompileAPK.sh: command not found

471448446 avatar Jul 20 '16 14:07 471448446

It looks like you're using bash. There is a known issue here. Try chsh sh or adding the fix in the outstanding pull request here.

jdkuki avatar Jul 20 '16 18:07 jdkuki

it can't work.

631068264 avatar Sep 30 '16 05:09 631068264

chmod a+x decompileAPK.sh ./decompileAPK.sh -p APK-File

It can work on Mac(I use zsh) And It's nothing to do with https://github.com/dirkvranckaert/AndroidDecompiler/pull/6/commits/6b400e5e9d7cfc2f1c256c621130db409be8cbf1

631068264 avatar Sep 30 '16 06:09 631068264