Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Google Play Games "Invalid classname: Object reference not set to an instance of an object".

Discussion in 'Editor & General Support' started by Isfandiyor09, Dec 24, 2022.

  1. Isfandiyor09

    Isfandiyor09

    Joined:
    Jan 12, 2022
    Posts:
    2
    I can't set up google play games for android. After pressing the setup button, I just get "Invalid classname: Object reference not set to an instance of an object." How can I fix this?

    Google Play Games plugin version: 0.10.12

    Unity Editior version 2021.3.16f1
     
  2. AndrewSpalato

    AndrewSpalato

    Joined:
    Sep 2, 2017
    Posts:
    11
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,962
    No different than every other nullref!

    How to fix a NullReferenceException error

    https://forum.unity.com/threads/how-to-fix-a-nullreferenceexception-error.1230297/

    Three steps to success:
    - Identify what is null <-- any other action taken before this step is WASTED TIME
    - Identify why it is null
    - Fix that

    In the case of Google Play Games, their integration must be followed absolutely to a tee or it won't work, so you may wish to go back over the steps you did to integrate it.
     
  4. stickylab

    stickylab

    Joined:
    Mar 16, 2016
    Posts:
    88
    upload_2023-3-8_20-54-46.png


    still confused how to fix this
     
  5. somozadev

    somozadev

    Joined:
    Feb 20, 2018
    Posts:
    2
    upload_2023-3-14_23-20-9.png

    Same issue here! it seems its some bug related with the Google Play Games SDK ( at least, it's last version 0.11.01).
    Still can't find any solution.
     
  6. FcoBaldi

    FcoBaldi

    Joined:
    Jun 20, 2019
    Posts:
    1
    Hello, did you find the solution?, I have the same bug, I think maybe is the "Constant class name", but I don't know what to write?
     
  7. Rudigao

    Rudigao

    Joined:
    Jul 12, 2017
    Posts:
    1