开发者

Target "debug" does not exist in the project

开发者 https://www.devze.com 2023-04-08 11:24 出处:网络
I am trying to do custom build, hence I am editing build.xml file. I have added 2 new targets, but now NetBea开发者_Python百科ns are giving me error, when trying to debug - Target \"debug\" does not e

I am trying to do custom build, hence I am editing build.xml file. I have added 2 new targets, but now NetBea开发者_Python百科ns are giving me error, when trying to debug - Target "debug" does not exist in the project.But I have added target of different names, no debug at all! Does it mean I have to put in my build.xml all the content from android-sdk\tools\ant\main_rules.xml ?


In build.xml, you'll neet to add the target.

Add these lines inside <project>:

<target name="debug" description="generate the distribution">
    <mkdir dir="dist"/>
    <jar jarfile="dist/MyProject.jar" />
</target>
0

精彩评论

暂无评论...
验证码 换一张
取 消