This isn't a kotlin version problem. You can try with latest kotlin version and the same error will happen.
The problem is related to proguard-rules.pro file. You need to edit it. If this error is occured by some libraries like razorpay, you can get the proguard rules from their documentaation.