使用 maven 设置 Android 支持库 [英] Android support library setup with maven

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

问题描述

我对 Android 有点陌生.

I'm kind of new to Android.

我正在为 android 应用程序设置一个 maven 模块(它在一个现有的多模块项目中),它使用 Google 支持库(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.

我希望我的项目能够使用 Jenkins (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.

在 Jenkins 中结合 maven/gradle 的任何选项也是可以接受的.

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

推荐答案

不幸的是,这些库不在中央 maven 存储库中.所以你必须使用 maven-android-sdk-deployer (link)将库安装到您的 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.

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

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