简体   繁体   English

当我引用一些jre库时,如何使用ant构建android项目

[英]How to build android project using ant, when i referenced some jre libs

I used eclipse to develop my android app and used JRE System Library in the project. 我使用eclipse开发了我的android应用程序,并在项目中使用了JRE系统库。 and i can build the project using Eclipse. 我可以使用Eclipse构建项目。 but i could not build it using ant. 但是我无法使用蚂蚁来构建它。 it could not found the classes in the JRE System Library. 它在JRE系统库中找不到这些类。 How can i add the JRE System Library to the ant build path? 如何将JRE系统库添加到ant构建路径?

Eclipse doesn't create all the files you need to be able to run the project from the command-line. Eclipse不会创建能够从命令行运行项目所需的所有文件。 Might I suggest http://www.vogella.com/articles/AndroidBuildAnt/article.html as a reference that will guide you through the steps to correctly configure Ant and use it from the command-line. 可能我建议http://www.vogella.com/articles/AndroidBuildAnt/article.html作为参考,它将指导您完成正确配置Ant的步骤,并从命令行使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在使用build.xml文件的Ant生成的jar文件中包含Eclipse项目的“Java Build Path”部分中引用的jar文件 - How to include the jars referenced in “Java Build Path” section of an Eclipse project in a jar file generated with Ant using a build.xml file 使用ANT脚本构建Android测试项目 - Build Android Test Project using ANT script 如何使用ant4eclipse复制eclipse项目中所有引用的jar? - How do I copy all referenced jars of an eclipse project using ant4eclipse? 当我使用Ant来构建具有多个库的Android项目时,我的构建失败了 - My build fails when I use Ant to build and Android project with multiple libraries 在Eclipse Java项目中包含Maven-ant构建库 - include maven-ant build libs in eclipse java project 如果有许多模块使用的库,如何使用ant构建项目 - How to build project using ant, if it has some libraries, used by many modules 我可以在构建时使用Ant在我的Android项目中设置一些静态变量吗? - Can I use Ant to set some static variables in my Android project when building? 蚂蚁构建问题与Android应用中的预编译库 - Ant build issue with pre-compiled libs in Android app 如何使用依赖Java项目的Ant构建Android项目? - How to build Android project with Ant that depends on Java project? 使用Ant在Eclipse上构建Android项目 - Build Android project on Eclipse with Ant
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM