2017-02-01 5 views
1

Obtenir l'erreur suivante tout recompiler apktool code généré par:errro tout en créant apk par apktool d2j-dex2jar

d2j-dex2jar b base 

Erreur:

java.nio.file.NoSuchFileException: b at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source) at java.nio.file.Files.newByteChannel(Unknown Source) at java.nio.file.Files.newByteChannel(Unknown Source) at java.nio.file.Files.readAllBytes(Unknown Source) at com.googlecode.d2j.reader.zip.ZipUtil.readDex(ZipUtil.java:57) at com.googlecode.d2j.reader.zip.ZipUtil.readDex(ZipUtil.java:53) at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java :104) at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288) at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)

+0

Il n'y a pas d'option -b. Lisez l'homme de 'd2j-dex2jar --help'. – zed

+0

@zed J'ai utilisé cette commande avec 'b' pour créer d'autres fichiers apk –

+0

Ceci est pour apktool pas dex2jar – zed

Répondre

0

Vous utilisez le drapeau incorrect. Ainsi l'erreur dit: je ne te comprends pas: le fichier 'b' n'existe pas. Lisez l'aide plus attentivement.

EDIT

d2j-dex2jar --help

d2j-dex2jar -- convert dex to jar

usage: d2j-dex2jar [options] [file1 ... fileN]

options:

-d,--debug-info translate debug info

-e,--exception-file detail exception file, default is $current_dir/[file-name]-error.zip

-f,--force force overwrite

-h,--help Print this help message

-n,--not-handle-exception not handle any exception throwed by dex2jar

-o,--output output .jar file, default is $current_dir/[file-na me]-dex2jar.jar

-os,--optmize-synchronized optmize-synchronized

-p,--print-ir print ir to Syste.out

-r,--reuse-reg reuse regiter while generate java .class file

-s same with --topological-sort/-ts

-ts,--topological-sort sort block by topological, that will generate more readable code

-v,--verbose show progress

version: reader-1.15, translator-0.0.9.15, ir-1.12

à assembler et disassmble, s'il vous plaît, lire le manuel:

https://sourceforge.net/p/dex2jar/wiki/ModifyApkWithDexTool/

# build jar 

d2j-jasmin2jar.sh -f -o test_apk_jasmin.jar test_apk_jasmin/ 

# verify jar 

d2j-asm-verify.sh test_apk_jasmin.jar 

# convert to dex 

d2j-jar2dex.sh -f -o classes.dex test_apk_jasmin.jar 

# make a copy 

cp test_apk-debug.apk test_apk-debug-toast.apk 

# replace classes.dex in test_apk-debug-toast.apk 

zip -r test_apk-debug-toast.apk classes.dex 

# sign the apk 

d2j-apk-sign.sh -f -o test_apk-debug-toast-signed.apk test_apk-debug-toast.apk 
+0

J'ai utilisé cette commande avec 'b' pour créer d'autres fichiers apk, https://www.youtube.com/ regarder? v = dZzGUNm_yX0 –

+0

@ MuhammadMuazzam, lol. ce n'est pas possilble. lis ma réponse mise à jour. pas de drapeau 'b' – Vyacheslav

+0

http://www.droidviews.com/tutorial-how-to-decompile-and-recomplie-apk-files/ –