简体   繁体   English

使用命令行和Libs文件夹中的jar创建android项目

[英]Create android project using command line with jars in Libs folder

When i went through the Android documentation, it says that the following Command would create an android project. 当我浏览Android文档时,它说以下命令将创建一个android项目。

android create project
--target <target_ID>
--name <your_project_name>
--path path/to/your/project
--activity <your_activity_name>
--package <your_package_namespace>

This works perfect. 这完美。 But i couldn't find android support jar in Libs folder. 但是我在Libs文件夹中找不到android支持jar。 When i create the same project using eclipse, by default the android support jar is added to Libs folder. 当我使用eclipse创建相同的项目时,默认情况下,Android支持jar将添加到Libs文件夹中。 But I want to include the JARs in the command so that they can be added to Libs folder at once. 但是我想在命令中包含JAR,以便可以将它们立即添加到Libs文件夹中。 Is there any command like that where i can add the list of JARs as arguments in the Command and while creating project the JARs would be added to Libs folder? 有没有这样的命令,我可以在其中添加JAR列表作为参数,并在创建项目时将JAR添加到Libs文件夹中? Or is this possible using any of the eclipse Command line tool of creating a java project with JARs added to dist folder or any such kind? 还是可以使用任何使用eclipse命令行工具创建带有添加到dist文件夹的JAR的Java项目或任何类似的工具?

No, it's not possible with standard Android command tools. 不,使用标准的Android命令工具是不可能的。 You will have to copy them manually from android SDK. 您将必须从android SDK中手动复制它们。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM