Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Build Error : Failed to call IPostGenerateGradleAndroidProject callback

Discussion in 'VR' started by jrmb, Sep 8, 2022.

  1. jrmb

    jrmb

    Joined:
    Nov 13, 2014
    Posts:
    2
    Hi,

    I suddenly got this error while building on an Oculus Quest 2.

    Failed to call IPostGenerateGradleAndroidProject callback

    Does anyone have a clue of how it appeared, or how it can be solved ?

    Thank you.
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    What unity version?
    Does a blank project work?
     
  3. jeremiebordas

    jeremiebordas

    Joined:
    Apr 6, 2022
    Posts:
    2
    I'm on version 2021.2.13f1, and a blank project does not work neither.
    I tried reinstalling all Android build support, JDK... but it still does not build.

    The same project, on the same Unity version builds on another computer.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    Then I suggest reinstalling unity, and unity hub both fully.
    Might as well go to the 2021 LTS if possible in the meantime
     
  5. leitecunha

    leitecunha

    Joined:
    Jun 26, 2013
    Posts:
    11
    Same here... Testing with 2022.2.7f1 and 2022.2.9f1. I just imported the Oculus Integration 49, done all the recommended settings. My scene only has an OVRCameraRig.... and it does that same error.
     
  6. sajadkk

    sajadkk

    Joined:
    Jul 15, 2023
    Posts:
    1
    The same project, on the same Unity version builds on another computer.
    me too
     
  7. JinMingqw

    JinMingqw

    Joined:
    Jul 22, 2023
    Posts:
    1
    Me too, did you solve the problem?
     
  8. sumaliqing

    sumaliqing

    Joined:
    Apr 19, 2018
    Posts:
    1
    Me too, did you solve the problem??