What you need is to install gradle, then call "gradle assembleRelease" in library dir of leak canary. If everything goes find, you get several aars files in build/outputs directory. These are android libraries. You should reference them as any other android libraries.