I have the same problem. I followed this step to solved it, in Android
Studio - Tools -> Android -> Sync Project with Gradle
Sorry, I forgot add this:
After Sync Project with Gradle Files follow this steps:
- Right mouse click for your project and select Open Module
- After that, select dependencies tab
- In the end - selec your library:
This should work.