drenther / upi_pay

Flutter plugin for UPI (Only in India)
MIT License
58 stars 71 forks source link

Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? #77

Closed Electro-17 closed 1 year ago

Electro-17 commented 1 year ago

Just installed the plugin and tried to make build, then got the below error.

e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (78, 42): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (83, 15): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (97, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?

drenther commented 1 year ago

Duplicate of #60