4

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

Abhay Chaware
  • 333
  • 4
  • 14

1 Answers1

5

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

joseporto
  • 318
  • 2
  • 9
  • Thanks joseporto .. but this looks like very basic requirement .. and used to work well in eclipse world .. – Abhay Chaware Apr 14 '16 at 09:17
  • possibilities are there. just refer this link creating AAR inside aar,jar. and how to use that Main AAR to third party application. http://stackoverflow.com/questions/34445399/create-an-aar-with-multiple-aars-jars – harikrishnan Nov 03 '16 at 07:08