Android Studio : AAR Library dependency inside ano

2019-02-25 04:44发布

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

1条回答
该账号已被封号
2楼-- · 2019-02-25 04:49

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

查看更多
登录 后发表回答