Skip to content

TrivialKart-unity: Facing a bug after try to update into editor 2021 since play console asked to target Android 14 (API level 34) #89

@riyansn

Description

@riyansn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions