gpt4 book ai didi

java - 在 Eclipse 中导入 ant build.xml

转载 作者:IT老高 更新时间:2023-10-28 13:20:54 28 4
gpt4 key购买 nike

我有一个使用ant构建的android项目,是否可以在eclipse IDE中导入这个ant项目?

update : 在 Eclipse File->New->Project->Java->Java 项目中从现有的 ant Buildfile 中有一个使用 ant build.xml 创建项目的选项。如果选择了 build.xml 文件,则会显示错误 Specified buildfile does not contain a javac task

我猜这个任务中声明了 javac

<taskdef name="setup"
classname="com.android.ant.SetupTask"
classpathref="android.antlibs"/>

最佳答案

来自 this link :

  1. 打开 Eclipse,选择 File> New> Project
  2. 选择“来自现有 Ant 构建文件的 Java 项目
  3. 显示您的构建文件并写下项目名称

关于java - 在 Eclipse 中导入 ant build.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3880350/

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