Quick Fix: Invoke-customs are only supported starting with Android O (--min-api 26)
This error gave me a hard time and finding a fix for it took quite a while so posting it will definitely help lot of android developers out there.
Here's what it looks like in an IDE. I've highlighted the error's stacktrace so you can spot it easily....
kotlinpete.hashnode.dev1 min read