Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by gentleTimestealer · Jul 12, 2018 at 09:07 AM · buildbuild-errorbuildingnamespaceassembly

Unity won't build on Windows after reinstall

I am in need of fixing this problem right away. I am a college student and the game I'm making it's my final career project, deadline in 2 days.


Description: I made my project with Unity 2017.3.0f3. The other day i realized I had only installed the Windows build (As in, no MacOS, no Linux, no anything) and so I uninstalled and installed the exact same version. But now, Unity will not build my game for release on Windows at all.


Errors pop out whenever I try to build the game on its own executable. The error I'm getting is the same type for everything: "The type or namespace 'SOMETHING' does not exist in the namespace 'UnityEngine'. Are you missing an assembly reference?" The game works perfectly fine on the editor and Visual Studio does not seem to detect any error at all. It only happens when I try to build a .exe.


Literally every script, even the ones from the asset store packages I got and the ones I made, have this kind of error and the game will simply fail to build. I've tried the following to no avail:


  1. Reimport all assets

  2. Delete the library folder to force Unity rebuild it

  3. Delete the .sln files to force Unity rebuild them

  4. Uninstalling Unity, turning computer off and on, Installing, turning computer off and on again.


None of the above worked. What are my options? I really need to salvage the project with all of its scenes, scripts and assets and be able to build it. This problem is really getting on my nerves and I have no more ideas.

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 gentleTimestealer · Jul 12, 2018 at 11:11 AM 0
Share

Update on the issue:

After attempting to make a new project and adding the assets from the previous one along with the very same settings to no avail (same errors) I realized maybe my Unity installation became corrupted. I installed a previous version (2017.1) and attempted to re-import the project manually (copying over the Assets folder, and the ProjectSettings folder with some slight modification so that Unity would believe it was the correct version).

The solution was to install Unity Hub, then Unity 2017.4.6f1. This time I only downloaded the standard support (no $$anonymous$$ac nor Linux) and the game compiled just fine after Unity converted it to the new version. Guess there was some data leftover from the Unity 2017.3 installation that prevented the re-installed one to properly build or something! Anyhow, after that I used Unity Hub to add the support for $$anonymous$$ac and Linux and it worked just fine.

Hopefully if someone runs into the same bizarre problem when re-installing they find this helpful.

TL;DR is: Use Unity Hub and don't ever attempt to re-install Unity while doing a project.

0 Replies

· Add your reply
  • Sort: 

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

155 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't "build and run". Can only use the "build "option 0 Answers

Gradle Build Failed -- Tried every solution I could find 0 Answers

Error building Player because scripts had compiler errors - Nothing else given 1 Answer

Why does Unity Cloud Build Keep Failing? 1 Answer

Unity won't let me build my game for PlaygroundProject. 0 Answers


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