Android Studio:另一个AAR库中的AAR库依赖项 [英] Android Studio : AAR Library dependency inside another AAR Library

查看:118
本文介绍了Android Studio:另一个AAR库中的AAR库依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android Studio 1.5。我有一个图书馆项目, core-speech-service.aar 。此AAR文件已正确生成(所有类均已构建并打包在AAR文件的classes.jar中。)



现在,我正在创建另一个AAR库 google- speech-service.aar ,取决于第一个AAR(核心语音服务)。因此,我将其添加为新的AAR库项目中的库依赖项(编译)。



到目前为止,一切都很好。 Android Studio将core-speech-service.aar作为库模块复制到新的库项目中。但是当我构建google-speech-service库项目时,它会创建一个AAR文件,但打包的AAR文件既不包含core-speech-service.aar中的类,也没有core-speech-service.aar本身。 / p>

我错过了什么吗?



感谢
abhay

解决方案

将该库作为对您的apk的外部依赖关系。我认为,到目前为止,您不能在另一个


中使用aar

I am using Android studio 1.5. I have a library project, core-speech-service.aar. This AAR file is generated correctly (all classes are built and packed inside classes.jar in the AAR file).

Now I am creating another AAR library google-speech-service.aar which depends on the first AAR (core-speech-service). So I add it as library dependency (compile) in the new AAR library project.

So far, so good. Android studio copies core-speech-service.aar in to the new library project as a library module. But when I build the google-speech-service library project, it creates an AAR file, but the packed AAR file neither contains classes from the core-speech-service.aar neither it has the core-speech-service.aar itself.

Am I missing something ?

Thanks abhay

解决方案

You will have to reference the library as an outside dependency on your apk. I believe that as of now you cannot have an aar inside another

这篇关于Android Studio:另一个AAR库中的AAR库依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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