Android Studio 3.5
Kotlin Version 1.3.41

See the error message in both editor and the gradle compile error log.

The solution is, delete ./.idea/libraries.

Reference: https://stackoverflow.com/a/49743044/8083009