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 /
avatar image
0
Question by yisusgamer55 · Aug 18, 2019 at 12:42 PM · errorscript.importhealth

Critical problem in importing scripts

Hi, I have been working on a project for more than a year. All good in unity 2018 and 2019 versions, until version 2019.2.1f1. I did the same as always, letting the editor reimport everything and it seemed fine, until in all the scripts of my project the following message appeared: "The associated script can not be loaded. Please fix any compile error and assign a valid script ". I tried the method of separating all scripts from the project folder and reimporting everything. It worked, but now all the scripts associated with objects and objects associated with scripts, could not find your script (I don't know if I explained myself well). Searching all scripts and associating them all again is not an option. I have hundreds of scripts and thousands of objects in my project and I can't waste time with that. I went back to my backup in an earlier version of unity, but when I downloaded some changes from Unity Collaborate, I began to receive the following errors:

 Library\PackageCache\com.unity.test-framework@1.0.13\UnityEditor.TestRunner\TestLaunchers\RemotePlayerLogController.cs(14,36): error CS0246: The type or namespace name 'DeploymentTargetLogger' could not be found (are you missing a using directive or an assembly reference?)

 An error occurred while resolving packages:
   Project has invalid dependencies:
     com.unity.2d.sprite: Package [com.unity.2d.sprite@1.0.0] cannot be found
     com.unity.2d.tilemap: Package [com.unity.2d.tilemap@1.0.0] cannot be found
     com.unity.modules.androidjni: Package [com.unity.modules.androidjni@1.0.0] cannot be found
     com.unity.package-manager-ui: Package [com.unity.package-manager-ui@2.2.0] cannot be found
     com.unity.timeline: Package [com.unity.timeline@1.1.0] cannot be found
 
 A re-import of the project may be required to fix the issue or a manual modification of C:/Users/jrcon/OneDrive/Escritorio/Adventure (Unity)/COPIAS SEGURIDAD/Juego Plataformas experimento sistema dialogo - copia/Packages/manifest.json file.

 Library\PackageCache\com.unity.test-framework@1.0.13\UnityEditor.TestRunner\CommandLineTest\LogWriter.cs(17,67): error CS0246: The type or namespace name 'DeploymentTargetLogger' could not be found (are you missing a using directive or an assembly reference?)

 Library\PackageCache\com.unity.test-framework@1.0.13\UnityEditor.TestRunner\GUI\IGuiHelper.cs(10,9): error CS0122: 'IFileOpenInfo' is inaccessible due to its protection level

 Library\PackageCache\com.unity.test-framework@1.0.13\UnityEditor.TestRunner\GUI\GuiHelper.cs(19,19): error CS0122: 'IMonoCecilHelper' is inaccessible due to its protection level

There are errors from JetBrains Rider because I used Rider 2018.3 before, but I decided to uninstall it to change it for Visual Studio 2019 Enterprise , but still uninstalling it, it seems to give plugin errors.

 Library\PackageCache\com.unity.ide.rider@1.0.8\Rider\Editor\Discovery.cs(7,13): error CS0234: The type or namespace name 'CodeEditor' does not exist in the namespace 'Unity' (are you missing an assembly reference?)

 Library\PackageCache\com.unity.ide.rider@1.0.8\Rider\Editor\PluginSettings.cs(5,13): error CS0234: The type or namespace name 'CodeEditor' does not exist in the namespace 'Unity' (are you missing an assembly reference?)

 Library\PackageCache\com.unity.ide.rider@1.0.8\Rider\Editor\RiderScriptEditor.cs(5,13): error CS0234: The type or namespace name 'CodeEditor' does not exist in the namespace 'Unity' (are you missing an assembly reference?)

 Library\PackageCache\com.unity.ide.rider@1.0.8\Rider\Editor\RiderScriptEditor.cs(184,12): error CS0246: The type or namespace name 'CodeEditor' could not be found (are you missing a using directive or an assembly reference?)

 Library\PackageCache\com.unity.ide.rider@1.0.8\Rider\Editor\ProjectGeneration.cs(286,17): error CS0246: The type or namespace name 'ResponseFileData' could not be found (are you missing a using directive or an assembly reference?)

and it also gives me Visual Studio errors ... this is very strange

 Library\PackageCache\com.unity.ide.vscode@1.0.7\Editor\VSCodeDiscovery.cs(7,13): error CS0234: The type or namespace name 'CodeEditor' does not exist in the namespace 'Unity' (are you missing an assembly reference?)

 Library\PackageCache\com.unity.ide.vscode@1.0.7\Editor\VSCodeScriptEditor.cs(8,13): error CS0234: The type or namespace name 'CodeEditor' does not exist in the namespace 'Unity' (are you missing an assembly reference?)

 Library\PackageCache\com.unity.ide.vscode@1.0.7\Editor\VSCodeDiscovery.cs(12,9): error CS0246: The type or namespace name 'CodeEditor' could not be found (are you missing a using directive or an assembly reference?)

 Library\PackageCache\com.unity.ide.vscode@1.0.7\Editor\VSCodeScriptEditor.cs(12,39): error CS0246: The type or namespace name 'IExternalCodeEditor' could not be found (are you missing a using directive or an assembly reference?)

 Library\PackageCache\com.unity.ide.vscode@1.0.7\Editor\VSCodeScriptEditor.cs(39,70): error CS0246: The type or namespace name 'CodeEditor' could not be found (are you missing a using directive or an assembly reference?)

 Library\PackageCache\com.unity.ide.vscode@1.0.7\Editor\ProjectGeneration.cs(573,25): error CS0246: The type or namespace name 'ResponseFileData' could not be found (are you missing a using directive or an assembly reference?)

and many more errors from code editors.

I demand a solution from Unity developers. And if someone could help me, I would greatly appreciate it. Thanks and I wait for answers.

PS: I'm sorry for my English, but it's not my native language :/

alt text

alt text

unityquestion.png (42.6 kB)
unityquestion2.png (9.4 kB)
Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Little_Robot_Guys · Oct 17, 2019 at 04:12 PM

Did this ever get resolved? I'm having the same issue and it is hard to find answers online.

Comment
Add comment · Show 1 · 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
avatar image yisusgamer55 · Mar 22, 2020 at 02:10 PM 0
Share

no, what i did was stay on the latest version where it worked.

avatar image
0

Answer by BBIT-SOLUTIONS · Mar 22, 2020 at 02:45 PM

I know it's already a few months later, but just have read it now...

Did you try to delete all contents from your Library/PackageCache folder? This should actually force Unity to re-import everything.

Comment
Add comment · Show 4 · 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
avatar image yisusgamer55 · Mar 22, 2020 at 04:36 PM 0
Share

Yes, I tried, it didn't work.

avatar image BBIT-SOLUTIONS yisusgamer55 · Mar 22, 2020 at 04:46 PM 0
Share

Ok, and did you also ensure, that the package manager can use all packages? $$anonymous$$g. by checking "Show preview packages" in Advanced, see here

And ensured, that all packages, which you use, are still available for the version, that you have set in your Packages/manifest.json file ?

avatar image yisusgamer55 · Mar 22, 2020 at 05:48 PM 0
Share

Hello, I am really grateful for your interest in my problem. It has literally been almost a year since I posted this, and I have had no response. Regarding your question, what packages do you mean? I don't use any package from the asset store.

avatar image BBIT-SOLUTIONS yisusgamer55 · Mar 22, 2020 at 09:03 PM 0
Share

Hi, yes, just saw the question now. And think maybe it would be interesting to find the solution, so that somebody else can find it, if having the same problem ;-)

But sure, i understand that you posted this a longer time ago and it is easy to "forget" such things. So, no worries if you don't know remember exactly anymore.

With the packages i mean sprite, tilemap and so on...the 5 ones which cause the error "package can not be found" at lines 5-9 in your first code-sample.

avatar image
0

Answer by BenjaminWolfgang · Jun 24, 2020 at 08:04 PM

Is there still not a fix for this issue?

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

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

Related Questions

Burgzergarcade Why am i getting an error after re-importing? 1 Answer

why isnt my object showing up? 1 Answer

Only destroy one instatnce 1 Answer

"Your script should either check if it is null or you should not destroy the object."...what am i doing wrong sorry im a noobie 1 Answer

,What is going on with this scrollable window? 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