This may be a general consideration.
compile 'com.github.chrisbanes.photoview:library:1.2.3'
It loads aar from Central Maven, not from github.
If you want to work with the dev and gradle branches, you should ask the author to create a snapshot or create it locally.
, lib, 1.2.3 . dev?