简体   繁体   English

安装Maven Android SDK Deployer

[英]Installing Maven Android SDK Deployer

Im trying to install this maven plugin, but i have several questions which i cant do trial & error because of my slow internet speed : 我试图安装这个 maven插件,但我有几个问题,由于我的网速较慢,我无法进行试验和错误:

The documentation said : 文件说:

For the default usage of the deployer install all platforms and add-on apis, ensure that all folder in the platforms folder have names like android-3, android-4 and so on.

Do i really need to download ALL of the platforms and extras, even i dont want to use it? 我是否真的需要下载所有平台和附加功能,即使我不想使用它?

And then, it said : 然后,它说:

If you find names using the platform version (e.g. 15) in the folder name reinstall that platform from the android tool.

This is my platforms folder : 这是我的platforms文件夹:

在此输入图像描述

It seems all of my platform's name is using the version, do i really need to re-install ALL of those installed platforms? 似乎我平台的所有名称都在使用该版本,我真的需要重新安装所有这些已安装的平台吗?

Do you have any other way how to make this maven plugin work more easily? 你还有其他方法可以让这个maven插件更轻松地工作吗?

Or do you have any better idea? 或者你有更好的主意吗? (different plugin maybe, or anything). (不同的插件可能,或任何东西)。 Im very new to Maven. 我对Maven很新。

Thanks very much for your help. 非常感谢您的帮助。

No need to reinstall, but make sure you have all the platform levels.When you run the SDK deployer POM, the build will go looking each and every one of the platform level folders and if you have one missing the build will fail. 无需重新安装,但请确保您具有所有平台级别。当您运行SDK部署程序POM时,构建将查看每个平台级别文件夹,如果您有一个缺失,则构建将失败。 So make sure you have all even if you don't require them. 所以即使你不需要它们,也要确保你拥有所有。 That's why they insist on the folder naming. 这就是他们坚持文件夹命名的原因。

This is how missing platform errors look like: 这就是缺少平台错误的样子:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:32 min
[INFO] Finished at: 2014-05-29T18:11:29-06:00
[INFO] Final Memory: 19M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-10: Properties file not found: $ANDROID_HOME/platforms/android-10/source.properties -> [Help 1]

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

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