vxh.viet
5/8/2016 - 2:37 PM

How to import cwac-cam2 as external library into Android Studio?

How to import cwac-cam2 as external library into Android Studio?

Question: How to import cwac-cam2 as external library into Android Studio?

Answer: example using cwac-cam2-0.5.11

  • Download cwac-cam2-0.5.11 from GitHub release.

  • In Android Studio New -> Import Module -> Source Directory.

  • Choose cam2 folder in cwac-cam2-0.5.11.

  • Enter cwac-cam2-0.5.11 as module name.

  • F4 or right click app -> Open Module Settings

  • Click app -> Dependencies -> + -> Module dependency -> cwac-cam2-0.5.11.