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
I tried changing the Android SDK and JDK paths but couldn’t find a clear solution. So, I upgraded my Unity Editor to 2021, which automatically provided JDK 11. However, this led to an error.
To fix it, I attempted to modify OnInitializeFailed(InitializationFailureReason error) to:
public void OnInitializeFailed(InitializationFailureReason error, string message)
But this resulted in a new error:
Assets\Scripts\Controller\PurchaseController.cs(83,50): error CS0535: ‘PurchaseController’ does not implement interface member ‘IStoreListener.OnInitializeFailed(InitializationFailureReason)’ [which mean they asked me to revert the method into the original one[
When I reverted the method back to:
public void OnInitializeFailed(InitializationFailureReason error)
The same original error reappeared:
Assets\Scripts\Controller\PurchaseController.cs(83,50): error CS0535: ‘PurchaseController’ does not implement interface member ‘IStoreListener.OnInitializeFailed(InitializationFailureReason, string)’
How can I resolve this issue?
The text was updated successfully, but these errors were encountered:
riyansn
changed the title
Facing a bug after try to update into editor 2021 since play console asked to target Android 14 (API level 34)
TrivialKart-unity: Facing a bug after try to update into editor 2021 since play console asked to target Android 14 (API level 34)
Feb 5, 2025
Just implement OnInitializeFailed(InitializationFailureReason error, string message)
while keeping OnInitializeFailed(InitializationFailureReason error)
I was trying to set up this project: games-samples/trivialkart/trivialkart-unity at main · android/games-samples. It works well with Unity 2020, but since I want to learn how to deploy it on the Play Store, I needed to update it to at least Android API 34.
I tried changing the Android SDK and JDK paths but couldn’t find a clear solution. So, I upgraded my Unity Editor to 2021, which automatically provided JDK 11. However, this led to an error.
To fix it, I attempted to modify OnInitializeFailed(InitializationFailureReason error) to:
public void OnInitializeFailed(InitializationFailureReason error, string message)
But this resulted in a new error:
Assets\Scripts\Controller\PurchaseController.cs(83,50): error CS0535: ‘PurchaseController’ does not implement interface member ‘IStoreListener.OnInitializeFailed(InitializationFailureReason)’ [which mean they asked me to revert the method into the original one[
When I reverted the method back to:
public void OnInitializeFailed(InitializationFailureReason error)
The same original error reappeared:
Assets\Scripts\Controller\PurchaseController.cs(83,50): error CS0535: ‘PurchaseController’ does not implement interface member ‘IStoreListener.OnInitializeFailed(InitializationFailureReason, string)’
How can I resolve this issue?
The text was updated successfully, but these errors were encountered: