gpt4 book ai didi

android - 使用 ant 制作 classes.dex 时出错

转载 作者:太空狗 更新时间:2023-10-29 15:19:56 25 4
gpt4 key购买 nike

我只是简单地使用

创建了我的 android 项目
android create project -n MyApps -t 3 -p "./" --package com.ith -a MyAppActivity

所有必要的文件都已创建,但是当我尝试构建时

ant release

命令我收到以下错误

-dex:
[dex] Converting compiled files and external libraries into D:\Office\My A
pps\bin\classes.dex...
[dx] unknown option: --output
[dx] usage:
[dx] dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]

[dx] [--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no
-strict]
[dx] [--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-widt
h=<n>]
[dx] [--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-li
brary]
[dx] [--num-threads=<n>] [<file>.class | <file>.{zip,jar,apk} | <direct
ory>] ...
[dx] Convert a set of classfiles into a dex file, optionally embedded
in a
[dx] jar/zip. Output name must end with one of: .dex .jar .zip .apk.
Positions
[dx] options: none, important, lines.
[dx] dx --annotool --annotation=<class> [--element=<element types>]
[dx] [--print=<print types>]
[dx] dx --dump [--debug] [--strict] [--bytes] [--optimize]
[dx] [--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step
=<step>]
[dx] [--width=<n>] [<file>.class | <file>.txt] ...
[dx] Dump classfiles, or transformations thereof, in a human-oriented
format.
[dx] dx --junit [-wait] <TestClass>
[dx] Run the indicated unit test.
[dx] dx -J<option> ... <arguments, in one of the above forms>
[dx] Pass VM-specific options to the virtual machine that runs dx.
[dx] dx --version
[dx] Print the version of this tool (1.6).
[dx] dx --help
[dx] Print this message.

BUILD FAILED
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:729: The following
error occurred while executing this line:
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:731: The following
error occurred while executing this line:
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:743: The following
error occurred while executing this line:
C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml:249: null returned:
1

我还没有编辑我的 build.xml 文件,主要规则 build.xml 文件在 C:\Program Files\Eclipse-sdk\android-sdk\tools\ant\build.xml。主要规则是 build.xml

我该如何修复这个错误

最佳答案

您使用命令创建项目android create project ...,可能会在您的项目中创建一个build.xml,我认为您不需要修改它,它可以正常工作。

关于android - 使用 ant 制作 classes.dex 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8906591/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com