I am also encountering this issue on the 3.2.1 version. If I change the Gradle version and invalidate the cache, it works.
for more details I just found the solution. Follow the directory in Android Studio IDE:
File -> Invalidate Caches / Restart...