2

I created an application with Room,Lifecycle,Paging libraries in android studio,its working well. Then I tried to build the same application in AOSP,But I can't include Room,Lifecycle,Paging libraries.

I found all these libraries in frameworks/support/ . But i don't have any idea about how to add these libraries.

Any clues on how to do it?

Ranjith KP
  • 858
  • 6
  • 18
  • Sounds like a similar question to this one: https://stackoverflow.com/questions/46413784/how-to-include-constraint-layout-library-in-an-aosp-project – satur9nine Aug 01 '18 at 05:24
  • Did you found any solution for this? @Mad code? If yes, could you please attach your Android.mk? – Banana droid Dec 03 '18 at 02:33

1 Answers1

1

Add the following lines in your Android.mk file

LOCAL_STATIC_ANDROID_LIBRARIES += \
    android-arch-room-runtime \
    android-arch-paging-runtime \
slfan
  • 8,950
  • 115
  • 65
  • 78
Ksk
  • 11
  • 1