You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
Operating System & Version (eg: Mac OSX 10.11): Win11
Google Play Services Version
GPS-FB with AndroidX dependencies (versions 118.5.0.1)
GPS-FB with Android.Support (legacy) dependencies : AnxdroidX with Material UI
Describe your Issue
Using this Nuget package Xamarin.Google.Android.Play.Core.AppUpdate (Version: 2.1.0.9)
Build Is Failing with this Code :
error: Home_AppUpdateInstallUpdateListner is not abstract and does not override abstract method onStateUpdate(InstallState) in StateUpdatedListener
public class Home_AppUpdateInstallUpdateListner
error: name clash: onStateUpdate(Object) in Home_AppUpdateInstallUpdateListner and onStateUpdate(InstallState) in StateUpdatedListener have the same erasure, yet neither overrides the other
public void onStateUpdate (java.lang.Object p0)
usingXamarin.Google.Android.Play.Core.AppUpdate;usingXamarin.Google.Android.Play.Core.AppUpdate.Install;usingXamarin.Google.Android.Play.Core.AppUpdate.Install.Model;publicIAppUpdateManager?AppUpdateManager;privateAppUpdateInstallUpdateListner?MyInstallUpdateListner;publicconstintAppUpdateTypeSupported=AppUpdateType.Flexible;protectedoverridevoidOnCreate(Bundle?savedInstanceState){base.OnCreate(savedInstanceState);HomeLayout=BindingHome.Inflate(LayoutInflater);SetContentView(HomeLayout.Root);try{OneSignal.Notifications.RequestPermissionAsync(true);App.SetUserId();AppUpdateManager=AppUpdateManagerFactory.Create(this);MyInstallUpdateListner=newAppUpdateInstallUpdateListner(AppUpdateManager);AppUpdateManager.RegisterListener(MyInstallUpdateListner);varAppUpdateInfoTask=AppUpdateManager.GetAppUpdateInfo();AppUpdateInfoTask.AddOnSuccessListener(newInAppUpdateSuccessListener(AppUpdateManager,this));}catch(ExceptionEx){App.ReportError(Ex);}}publicclassInAppUpdateSuccessListener(IAppUpdateManager?AppUpdateManager,Activity?Home):Java.Lang.Object,IOnSuccessListener{privatereadonlyIAppUpdateManager?AppUpdateManager=AppUpdateManager;privatereadonlyActivity?Home=Home;publicvoidOnSuccess(Java.Lang.Objectresult){if(resultis not AppUpdateInfoEInfo){return;}if(EInfo.InstallStatus()==InstallStatus.Downloaded){AppUpdateManager?.CompleteUpdate();return;}intIAvailability=EInfo.UpdateAvailability();if((IAvailability.Equals(UpdateAvailability.UpdateAvailable)||IAvailability.Equals(UpdateAvailability.DeveloperTriggeredUpdateInProgress))&&EInfo.IsUpdateTypeAllowed(AppUpdateType.Immediate)){AppUpdateOptions?Options=AppUpdateOptions.NewBuilder(AppUpdateTypeSupported).Build();AppUpdateManager?.StartUpdateFlow(EInfo,Home,Options);}}}publicclassAppUpdateInstallUpdateListner(IAppUpdateManager?AppUpdateManager):Java.Lang.Object,IInstallStateUpdatedListener{publicIAppUpdateManager?AppUpdateManager=AppUpdateManager;publicvoidOnStateUpdate(Java.Lang.Objectp0){if(p0is not InstallStatestate){return;}if(state.InstallStatus()==InstallStatus.Downloaded){AppUpdateManager?.CompleteUpdate();}}}
The text was updated successfully, but these errors were encountered:
DotNet-8.0-Android
Operating System & Version (eg: Mac OSX 10.11): Win11
Google Play Services Version
GPS-FB with AndroidX dependencies (versions
118.5.0.1
)GPS-FB with Android.Support (legacy) dependencies : AnxdroidX with Material UI
Describe your Issue
Using this Nuget package Xamarin.Google.Android.Play.Core.AppUpdate (Version: 2.1.0.9)
Build Is Failing with this Code :
Relevant information
Packages used:
Build settings (tools)
Minimal Repro Code Sample
The text was updated successfully, but these errors were encountered: