包含/库/文件夹中的AAR [英] Include /libs/ folder in aar

查看:173
本文介绍了包含/库/文件夹中的AAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感觉像我要去疯的! - 这一定是如此简单

Feel like Im going mad here - this must be so simple!

我有一个机器人AAR我从摇篮assembleRelease 并且还内置使用的maven-发布插件。我以为/库/被列入默认,但显然不是。

I have an android aar which I have built from gradle assembleRelease and also using the maven-publish plugin. I thought that /libs/ was included by default but evidently not.

安卓工具的网站显示其可选的包括:

Android tools site shows its an optional include

http://tool​​s.android.com/tech-文档/新制造系统/ AAR-格式

但对我的生活中,我没有看到这个配置。

but for the life of me I don't see where this is configured.

我也问过相关的Q 在摇篮神器包括文件夹,但我没有看到这是一个重复的那一个通用的摇篮问题真的,而这是AAR具体的摇篮外,可能会解决。

I have asked a related Q Include folder in Gradle artifact but I dont see this as a duplicate as thats a generic gradle question really whereas this is aar specific and may be solved outside of gradle.

编辑我还要求在摇篮论坛

推荐答案

在AAR包本地库库/ ,所以你需要有当地的jar依赖。

The aar packages local libraries in libs/ so you need to have local jar dependencies.

dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
}

这篇关于包含/库/文件夹中的AAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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