Android的支持库建立与Maven [英] Android support library setup with maven

查看:228
本文介绍了Android的支持库建立与Maven的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一种新的到Android。

I'm kind of new to Android.

我设置为Android应用程序的Maven模块(这是现有的多模块项目中),它使用谷歌支持库(V4,V7,V13)。 是什么使得它与Maven工作的最适当的方式。

I'm setting up a maven module for android application (it's inside an existing multi-module project), which uses Google Support Libraries (v4, v7, v13). What is the most adequate way of making it work with maven.

我想我的项目能够建立与詹金斯(Maven的),所以我不能链接任何IDE特定项目或非Maven依赖任何手段。

I want my project to be able to build with Jenkins (Maven), so I can't link any IDE specific projects or any means of non-maven dependencies.

任何以行家/摇篮结合起来,詹金斯的选择也是可以接受的。

Any options to combine maven/gradle in Jenkins are also acceptable.

推荐答案

不幸的是这些库不在中央Maven仓库。所以你必须使用Maven,Android的SDK-部署(链接)到库安装到您的Maven仓库。那么作为在自述中描述添加所需的库到你的pom.xml文件。

unfortunately those libraries are not in the central maven repository. so you have to use the maven-android-sdk-deployer (link) to install the libraries into your maven repository. then add the needed libraries to your pom.xml file as described in the readme.

这篇关于Android的支持库建立与Maven的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆