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
1
Question by mallolje · Feb 10, 2021 at 12:58 AM · android buildbuild error

Problems with Build an Run for Android in Unity 2021.1.0b5

Hello. I download Unity 2021.10b5, and I have problems with this version. I pressed Build and Run button for test my app, but appears 13 errors. I included screenshot for your information. alt text

I have included all the list of errors appear in the Console:

1. Assertion failed on expression: 'ins.second || ins.first->second == artifactID || (ins.first->second == CircularDependencyArtifactID() && !artifactID.IsValid()) || GetPathFromAssetGuidV2(key.GetGUID()).ends_with(".cs")' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

2. File C:\Users\User.android\repositories.cfg could not be loaded. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

3 Assembly for Assembly Definition File 'Packages/com.unity.xiaomi/Xiaomi.asmdef' will not be compiled, because it has no scripts associated with it. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

4 Type '[UnityEngine.UI]UnityEngine.UI.InputField' has an extra field 'm_OnEndEdit' of type 'UnityEngine.UI.InputField+EndEditEvent' in the player and thus can't be serialized (expected 'm_OnValueChanged' of type 'UnityEngine.UI.InputField+OnChangeEvent') UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

5 Type '[UnityEngine.UI]UnityEngine.UI.InputField' has an extra field 'm_OnSubmit' of type 'UnityEngine.UI.InputField+SubmitEvent' in the player and thus can't be serialized (expected 'm_OnValueChanged' of type 'UnityEngine.UI.InputField+OnChangeEvent') UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

6. Fields serialized in Editor, class 'UnityEngine.UI.InputField' 'm_TextComponent' of type 'UnityEngine.UI.Text' 'm_Placeholder' of type 'UnityEngine.UI.Graphic' 'm_ContentType' of type 'UnityEngine.UI.InputField+ContentType' 'm_InputType' of type 'UnityEngine.UI.InputField+InputType' 'm_AsteriskChar' of type 'System.Char' 'm_KeyboardType' of type 'UnityEngine.TouchScreenKeyboardType' 'm_LineType' of type 'UnityEngine.UI.InputField+LineType' 'm_HideMobileInput' of type 'System.Boolean' 'm_CharacterValidation' of type 'UnityEngine.UI.InputField+CharacterValidation' 'm_CharacterLimit' of type 'System.Int32' 'm_OnEndEdit' of type 'UnityEngine.UI.InputField+SubmitEvent' 'm_OnValueChanged' of type 'UnityEngine.UI.InputField+OnChangeEvent' 'm_CaretColor' of type 'UnityEngine.Color' 'm_CustomCaretColor' of type 'System.Boolean' 'm_SelectionColor' of type 'UnityEngine.Color' 'm_Text' of type 'System.String' 'm_CaretBlinkRate' of type 'System.Single' 'm_CaretWidth' of type 'System.Int32' 'm_ReadOnly' of type 'System.Boolean' 'm_ShouldActivateOnSelect' of type 'System.Boolean' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

7 Fields serialized in target platform, class 'UnityEngine.UI.InputField' 'm_TextComponent' of type 'UnityEngine.UI.Text' 'm_Placeholder' of type 'UnityEngine.UI.Graphic' 'm_ContentType' of type 'UnityEngine.UI.InputField+ContentType' 'm_InputType' of type 'UnityEngine.UI.InputField+InputType' 'm_AsteriskChar' of type 'System.Char' 'm_KeyboardType' of type 'UnityEngine.TouchScreenKeyboardType' 'm_LineType' of type 'UnityEngine.UI.InputField+LineType' 'm_HideMobileInput' of type 'System.Boolean' 'm_CharacterValidation' of type 'UnityEngine.UI.InputField+CharacterValidation' 'm_CharacterLimit' of type 'System.Int32' 'm_OnEndEdit' of type 'UnityEngine.UI.InputField+EndEditEvent' 'm_OnSubmit' of type 'UnityEngine.UI.InputField+SubmitEvent' 'm_OnValueChanged' of type 'UnityEngine.UI.InputField+OnChangeEvent' 'm_CaretColor' of type 'UnityEngine.Color' 'm_CustomCaretColor' of type 'System.Boolean' 'm_SelectionColor' of type 'UnityEngine.Color' 'm_Text' of type 'System.String' 'm_CaretBlinkRate' of type 'System.Single' 'm_CaretWidth' of type 'System.Int32' 'm_ReadOnly' of type 'System.Boolean' 'm_ShouldActivateOnSelect' of type 'System.Boolean' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

8 Type '[Unity.TextMeshPro]TMPro.TextMeshPro' has an extra field '_SortingLayer' of type 'System.Int32' in the player and thus can't be serialized (expected 'm_hasFontAssetChanged' of type 'System.Boolean') UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

9 Type '[Unity.TextMeshPro]TMPro.TextMeshPro' has an extra field '_SortingLayerID' of type 'System.Int32' in the player and thus can't be serialized (expected 'm_hasFontAssetChanged' of type 'System.Boolean') UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

10 Type '[Unity.TextMeshPro]TMPro.TextMeshPro' has an extra field '_SortingOrder' of type 'System.Int32' in the player and thus can't be serialized (expected 'm_hasFontAssetChanged' of type 'System.Boolean') UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

11 Fields serialized in Editor, class 'TMPro.TextMeshPro' 'm_hasFontAssetChanged' of type 'System.Boolean' 'm_renderer' of type 'UnityEngine.Renderer' 'm_maskType' of type 'TMPro.MaskingTypes' '_SortingLayer' of type 'System.Int32' '_SortingLayerID' of type 'System.Int32' '_SortingOrder' of type 'System.Int32' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

12 Fields serialized in target platform, class 'TMPro.TextMeshPro' '_SortingLayer' of type 'System.Int32' '_SortingLayerID' of type 'System.Int32' '_SortingOrder' of type 'System.Int32' 'm_hasFontAssetChanged' of type 'System.Boolean' 'm_renderer' of type 'UnityEngine.Renderer' 'm_maskType' of type 'TMPro.MaskingTypes' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

13 Error building player because script class layout is incompatible between the editor and the player.

14 Build completed with a result of 'Failed' in 208 seconds (208271 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

15 UnityEditor.BuildPlayerWindow+BuildMethodException: 10 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

link text

Could you please help me? Thank you..

errorsinunity-2-9-2021.pdf (333.2 kB)
errorsinunity-2-9-2021.png (265.2 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

5 Replies

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

Answer by FVS · Mar 27, 2021 at 10:45 AM

did you solve it? and how?

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 mallolje · Mar 27, 2021 at 03:07 PM 0
Share

Yes, the errors were fixed. It was updated Text Mesh Pro. Thanks you.

avatar image serkantarakci · May 31, 2021 at 12:36 PM 0
Share

How did you solve that?

avatar image mallolje serkantarakci · Jun 04, 2021 at 04:25 PM 0
Share

Let me explain to you, how I fixed the problem, I went to Window, Package Manager + Unity Registry + TextMeshPro (Update or Install), and that's helped me to resolve the problem.

avatar image serkantarakci mallolje · Jun 04, 2021 at 07:34 PM 0
Share

Thank you. But I couldn't fix $$anonymous$$e. So I created a brand new project :D

avatar image
3

Answer by theolagendijk · Jul 07, 2021 at 12:02 PM

I had the same issue in Unity Editor 2021.1.13f1 running on MacOS. My Unity project would run just fine in the Unity Editor. But would throw the above types of errors when building for Android or for iOS. For me this issue was resolved by;

1) closing the Unity editor. 2) Deleting the "obj" and the "Library" folder and then 3) reopening the project in the Unity Editor.

I hope this helps someone.

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 mallolje · Jul 07, 2021 at 03:35 PM 1
Share

Thank you for providing the information.

avatar image gaojc915 · Aug 13, 2021 at 02:22 PM 1
Share

Your advice resolve my problem. Thanks for your help.

avatar image Aligdev · Aug 20, 2021 at 07:09 PM 0
Share

Worked for me, thank you. Up voted.

avatar image PJacouF · Oct 17, 2021 at 05:36 PM 0
Share

Where can I find these folders. I am a beginner can you help me please? I am having the same issue. (Edit: Never$$anonymous$$d I found them and it worked.)

avatar image
1

Answer by realragnvaldr · Apr 29, 2021 at 09:35 PM

Same problem here after i switched to 2021.1.5f1 (no problems before). App runs without problems in the Unity Editor.

Then i try to build for android and i get 13 errors, like

Type '[Unity.TextMeshPro]TMPro.TextMeshPro' has an extra field '_SortingLayer' of type 'System.Int32' in the player and thus can't be serialized

After i re-import TextMeshPro via package manager, it gives 175 errors... Any solutions to this?

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

Answer by bpolaro · Jul 09, 2021 at 11:19 PM

I just re-imported all my assets and it built fine after the error.

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

Answer by omsrobert · Apr 07, 2021 at 03:29 PM

I am having the same problem. Unity QA is terrible. What a buggy development system!

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

123 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

Related Questions

Android APK Build Failing "Execution failed for task ':launcher:checkReleaseDuplicateClasses'." 5 Answers

Unable to list target platforms. When I try to build to Andriod on Mac 5 Answers

Android build fails for project with large array of data 1 Answer

Android build gradle failed 1 Answer

UnityEditor.BuildPlayerWindow+BuildMethodException - Anyone guide to solve this ERROR please??? 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