Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试进行自定义构建,因此我正在编辑 build.xml 文件。我添加了 2 个新目标,但是现在 NetBeans 在尝试调试时给了我错误 - 项目中不存在目标“调试”。但是我添加了不同名称的目标,根本没有调试!这是否意味着我必须将android-sdk\tools\ant\main_rules.xml中的所有内容放入我的 build.xml 中?
在 build.xml 中,您需要添加目标。
在里面添加这些行<project>:
<project>
<target name="debug" description="generate the distribution"> <mkdir dir="dist"/> <jar jarfile="dist/MyProject.jar" /> </target>