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.
我正在尝试将此项目https://github.com/OnlyInAmerica/Osmdroid-Plus/wiki构建为 JAR,但我不能。我按照那里的“配置”步骤,已经有 Tomcat ant 命令来构建,但它说“build.xml 不存在!” 并且 ant -v 命令也不起作用或使用 eclipse 创建构建。我使用 Eclipse 将其导出为 jar,但使用该 JAR 在我的项目中出现错误“转换为 Dalvik 格式失败,错误 1”。
你试过这个吗?:
Right click on project -> export -> select under "java" -> select path -> finish
此步骤将为您的项目创建一个 jar 文件。
将 jar 用于另一个项目:
Right click on your project -> Build Path -> Add external archive -> select the jar file