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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Pre-Export function throws exception

Discussion in 'Unity Build Automation' started by Cosi-Games, Oct 21, 2015.

  1. Cosi-Games

    Cosi-Games

    Joined:
    Oct 5, 2015
    Posts:
    4
    Hello,
    I have a Class UnityCloudBuildHandler in this class I have a public static function PreExport.
    I see this error when I make a build,
    [Unity] ERROR: Caught exception invoking method 'PreExport': Could not load type 'UnityCloudBuildHandler'.

    What could be causing this?
     
  2. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    Hey Cosi,
    There was an issue where that message was printing out even though the PreExport method was still being run so it should be safe to ignore that message (unless you saw that error 4 times in a row). Also a fix went out this morning for that issue, so it should no longer be printing out that error unless it truly was an error. Try building again and let me know if you still get that error.
     
  3. Cosi-Games

    Cosi-Games

    Joined:
    Oct 5, 2015
    Posts:
    4
    I doubt that my function is being called. I have put logs in the function, I don't see those logs. Also, When I make android build manually the apk size is 27 MB, but I make the same build with Unity Cloud the app size is 50+MB.

    Also is there any time limit for the called function to return, I am forcefully building all bundles in PreExport function & this process takes couple of minutes. I hope this is fine.


    Thanks,
    Altaf
     
  4. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    Hey Altaf,
    Can you direct message me a link to your project in Cloud Build?
     
  5. Cosi-Games

    Cosi-Games

    Joined:
    Oct 5, 2015
    Posts:
    4
    Hello Ryan,
    Were you able to track down the issue?
     
  6. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    Hey Altaf,
    I sent you a direct message.
     
  7. Cosi-Games

    Cosi-Games

    Joined:
    Oct 5, 2015
    Posts:
    4
    Hello Ryan,
    My Bad, I will check there.

    Thanks,
    Altaf