Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Stone-Legion · May 19, 2014 at 07:38 PM · build-errorspritescompilerspritemanagercompiler-error

Unable to Buld & Run due to Unity Sprite Packer compiler error

As the title states, I can't build and run my game client due to the following error:

 ReflectionTypeLoadException: The classes in the module cannot be loaded.
 System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
 UnityEditor.Sprites.Packer.<RegenerateList>m__DE (System.Reflection.Assembly a) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Sprites/SpritePacker.cs:61)
 System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator14`3[System.Reflection.Assembly,System.Type,<>__AnonType0`2[System.Reflection.Assembly,System.Type]].MoveNext ()
 System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[<>__AnonType0`2[System.Reflection.Assembly,System.Type]].MoveNext ()
 System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[<>__AnonType0`2[System.Reflection.Assembly,System.Type],System.Type].MoveNext ()
 System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.Type,System.String].MoveNext ()
 System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:128)
 System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:65)
 System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source)
 UnityEditor.Sprites.Packer.RegenerateList () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Sprites/SpritePacker.cs:65)
 UnityEditor.Sprites.Packer.GetSelectedPolicyId () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Sprites/SpritePacker.cs:76)
 UnityEditor.HostView:OnGUI()


The game will play within the editor without problem, however, when trying to build the client for external use, it simply stalls at building iwth this error. Suggestions?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MrLucid72 · Feb 29, 2016 at 12:14 PM 0
Share

good to know, but a lot of assets import their own things ... I have no clue as to where it's co$$anonymous$$g from. I'm getting this, ugh, but non-fatal

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Stone-Legion · May 19, 2014 at 11:09 PM

Solved.

Solution: Make sure that if you're importing dll's, that all dll's referenced in the imported dll is included.

For example, our project has our own imported dll classes compiled with C# Visual Express 2010 .NET 2.0. One of these classes was referencing another dll for another library. In this case, I just removed that second referenced dll from the Visual Express project because I was only using it for testing, but had I wanted to use it, I would have also had to include that dll in the Unity project.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Atlas Building 0 Answers

Error building Player: Extracting referenced dlls failed. 8 Answers

Unity Android: sprites appearing as black squares 2 Answers

How can I stop the variable values reverting to its default values after being built? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges