The library works on API 15+, which is the only requirement and should be met by most projects nowadays.

It is publicly hosted on JCenter, where you can download the AAR package. To fetch with Gradle, make sure you add the JCenter repository in your root projects build.gradle file:

allprojects {
  repositories {
    jcenter()
  }
}

Then simply download the latest version:

api 'com.otaliastudios:cameraview:2.0.0-beta05'

No other configuration steps are needed.