1.10 Android 打包报错

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:SixSplice:transformClassesWithPreDexForRelease’.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {–dex --verbose --num-threads=4 --output /Users/lutongrui/Documents/CocosProjects/SixSplice/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/preDex/release/0.jar --min-sdk-version 15 /Users/lutongrui/Documents/CocosProjects/SixSplice/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/classes/release}

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 8m 24s
50 actionable tasks: 50 executed
PREDEX CACHE HITS: 0
PREDEX CACHE MISSES: 0
unknown option: --min-sdk-version
usage:
dx --dex [–debug] [–verbose] [–positions=] [–no-locals]
[–no-optimize] [–statistics] [–[no-]optimize-list=] [–no-strict]
[–keep-classes] [–output=] [–dump-to=] [–dump-width=]
[–dump-method=[*]] [–verbose-dump] [–no-files] [–core-library]
[–num-threads=] [–incremental] [–force-jumbo] [–no-warning]
[–multi-dex [–main-dex-list= [–minimal-main-dex]]
[–input-list=]
[.class | .{zip,jar,apk} | ] …
Convert a set of classfiles into a dex file, optionally embedded in a
jar/zip. Output name must end with one of: .dex .jar .zip .apk or be a directory.
Positions options: none, important, lines.
–multi-dex: allows to generate several dex files if needed. This option is
exclusive with --incremental, causes --num-threads to be ignored and only
supports folder or archive output.
–main-dex-list=: is a list of class file names, classes defined by
those class files are put in classes.dex.
–minimal-main-dex: only classes selected by --main-dex-list are to be put in
the main dex.
–input-list: is a list of inputs.
Each line in must end with one of: .class .jar .zip .apk or be a directory.
dx --annotool --annotation= [–element=]
[–print=]
dx --dump [–debug] [–strict] [–bytes] [–optimize]
[–basic-blocks | --rop-blocks | --ssa-blocks | --dot] [–ssa-step=]
[–width=] [.class | .txt] …
Dump classfiles, or transformations thereof, in a human-oriented format.
dx --find-usages <file.dex>
Find references and declarations to a field or method.
declaring type: a class name in internal form, like Ljava/lang/Object;
member: a field or method name, like hashCode
dx -J … <arguments, in one of the above forms>
Pass VM-specific options to the virtual machine that runs dx.
dx --version
Print the version of this tool (1.12).
dx --help
Print this message.
Error running command, return code: 1.

谢谢大侠指导啊!

我也遇到了,还没有解决

我升级到 2.0就好了,是引擎的问题