thisisthekap / Xamarin.RevenueCat.Android

MIT License
6 stars 5 forks source link

error: package kotlin.jvm.functions does not exist #27

Closed shimfish closed 3 years ago

shimfish commented 3 years ago

After updating to latest Visual Studio 2019 for Mac and latest components, my project no longer compiles.

The autogenerated java files created for the revenuecat listener functions fail to compile with the error:

error: package kotlin.jvm.functions does not exist

in reference to the lines:

public class StoreProductPage_PurchaseFailureListener
    extends java.lang.Object
    implements
        mono.android.IGCUserPeer,
        kotlin.jvm.functions.Function2,
        kotlin.Function

After a few hours of googling and finding nothing I'm now completely stuck. I tried downgrading Xamarin.Android but that didn't help.

shimfish commented 3 years ago

Finally fixed this by removing all nuget packages for kotlin and revenuecat and then reinstalling the revenuecat package.