开发者

Target "debug" does not exist in the project

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜