使用apktool反编译.xml文件的.apk文件时显示错误

时间:2015-01-28 14:52:23

标签: android apktool

我想将.apk文件解码为java和xml文件。为此,我按照此链接提供的教程 - http://comptech-blogger.blogspot.com/2012/09/how-to-get-source-code-from-apk-file.html。我有java文件,但我在获取xml文件的过程中遇到问题。当我在命令提示符下编写命令 - apktool d filename.apk时,它显示以下消息:

d[ecode] [OPTS] <file.apk> [<dir>]
    Decode <file.apk> to <dir>.

    OPTS:

    -s, --no-src
        Do not decode sources.
    -r, --no-res
        Do not decode resources.
    -d, --debug
        Decode in debug mode. Check project page for more info.
    -f, --force
        Force delete destination directory.
    -t <tag>, --frame-tag <tag>
        Try to use framework files tagged by <tag>.
    --keep-broken-res
        Use if there was an error and some resources were dropped, e.g.:
        "Invalid config flags detected. Dropping resources", but you
        want to decode them anyway, even with errors. You will have to
        fix them manually before building.
b[uild] [OPTS] [<app_path>] [<out_file>]
    Build an apk from already decoded application located in <app_path>.

    It will automatically detect, whether files was changed and perform
    needed steps only.

    If you omit <app_path> then current directory will be used.
    If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
    will be used.

    OPTS:

    -f, --force-all
        Skip changes detection and build all files.
    -d, --debug
        Build in debug mode. Check project page for more info.

if|install-framework <framework.apk> [<tag>]
    Install framework file to your system.

我真的无法理解问题出在哪里。我按照该教程中包含的每个步骤进行操作。请帮忙。

0 个答案:

没有答案