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 /
  • Help Room /
avatar image
0
Question by sangam · Jan 20, 2021 at 07:41 AM · errorerror message

unity 2019.4.15f sharedassets0.assets' is corrupted! Remove it and launch unity again!

I am facing the following errors at the time of running an android build and it is crashing instantly, I have checked the other forums on this top as well which has the following suggestion, which doesn't work in my case


Suggestion :

  • Make sure there should not be any duplicate files with the same name and different extension ex TestScript.cs and TestScript.js (as from 2014 on onward .js script not supported so there is no .js script in my project )

  • Make sure abstract class should not have "[Serializable]" attribute (in my case no abstract class has "[Serializable]" attribute)


Error: (error read from android studio Logcat )

  • 021-01-20 12:50:29.215 5630-5802/? E/Unity: The file '/data/app/com.TestGame.ChefMaster-1/base.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again! [Position out of bounds!] (Filename: Line: 214)

  • 2021-01-20 12:50:29.722 5630-5802/? E/Unity: The file '/data/app/com.TestGame.ChefMaster-1/base.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again! [Position out of bounds!] (Filename: Line: 220)


Hey if any know the solution for this problem I will be a great help

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 alipaknahad · Apr 12, 2021 at 05:25 AM 0
Share

Hi, were you able to solve this issue? I have the exact same problem.

1 Reply

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

Answer by sangam · Jan 20, 2021 at 05:40 PM

I am using the following code for a scriptableoObject can this will be a cause of it?


 public class BaseItem<T, U> where T : struct where U : Object
     {
         public T type;
         
         public string resourcePath;
 #if UNITY_EDITOR
         public U obj;
 #endif
     }
 
     public class BaseItemRef<T, U, V> : ScriptableObject where T : BaseItem<U, V> where U : struct where V : Object
     {
         [SerializeField] protected List<T> itemList;
         [SerializeField] private Dictionary<U, T> itemDic;
 
         private void Init()
         {
             var count = itemList.Count;
             itemDic = new Dictionary<U, T>();
             for (var i = 0; i < count; i++)
             {
                 itemDic.Add(itemList[i].type, itemList[i]);
             }
         }
 
         public T GetItemByType(U type)
         {
             if (itemDic == null)
                 Init();
             if (itemDic.ContainsKey(type))
                 return itemDic[type];
             return null;
         }
 
         public V GetObjectByType(U type)
         {
             var data = GetItemByType(type);
             if (data != null)
             {
                 return Resources.Load<V>(data.resourcePath);
             }
             Debug.LogError($"Cannot able to find {type.ToString()} please add it tp ref ");
             return null;
         }
 
 #if UNITY_EDITOR
         public virtual void AssignRef()
         {
             var count = itemList.Count;
             for (var i = 0; i < count; i++)
             {
                 itemList[i].resourcePath = itemList[i].obj.GetResourcePath();
             }
 
             SaveChanges();
         }
 
         protected void SaveChanges()
         {
             UnityEditor.EditorUtility.SetDirty(this);
             UnityEditor.AssetDatabase.SaveAssets();
         }
 
         public void Initialize()
         {
             Init();
         }
 #endif
     }


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

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

0xc000007b error on 64 bit machine? 1 Answer

2018.2 text mesh pro. plugin Errors. 7 Answers

Assertion failed on expression: 'channel.frameCount != 0' ,Assertion failed on expression: 'channel.frameCount != 0' - 2018.3.3f1 6 Answers

AndroidArchitecture' does not contain a definition for 'X86' 1 Answer

PLEASE HELP, BUILD APK ERROR 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