I tried using OkHttp and Picasso (following this answer) for disk caching of images that I was downloading from Firebase storage. Now, the app gives exceptions and crashes.
In Android Studio 2.3 and higher, There is Instant Run which may affect your code.
Disable Instant Run
Instant Run
File -> Settings -> Build, Execution, Deployment -> Instant Run
In my case it was working perfect when run from Android Studio but crashing when install from other sources
Android Studio