• 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 vrzone-io · Oct 16, 2020 at 09:08 AM · android buildoculus

Error while building Unity3D project for Oculus Quest - Api Updater

My stack:

  • MacOS Catalina 10.15

  • Unity 2020.1

The project runs without problems in the editor but when I try to "Build and Run" on Oculus Quest, the build fails and I get the following error:

 APIUpdater encountered some issues and was not able to finish.

However, if I just run "Build" I get the same message but the build doesn't fail.

This is the detailed log:

Unhandled Exception: System.InvalidOperationException: Operation is not valid due to the current state of the object. at Mono.Cecil.ModuleDefinition.ReadSymbols (Mono.Cecil.Cil.ISymbolReader reader) [0x0002f] in :0 at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x0004a] in :0 at Mono.Cecil.ModuleReader.CreateModule (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x00081] in :0 at Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000d] in :0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0006c] in :0
at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in :0
at APIUpdater.Framework.Configuration.ObsoleteAttributeBasedConfigurationFactory..ctor (System.String pathToAssemblyWithAttr, System.Boolean reportSourceInformation, System.String[] potentiallyReferencedAssemblyPaths) [0x00079] in :0 > at > APIUpdater.Framework.Util.IEnumerableExtensions.ComputeConfigurationProvider > (System.Collections.Generic.IEnumerable1[T] > assemblyPaths, > APIUpdater.Framework.Configuration.ConfigurationProvider > provider, System.String[] references) > [0x00032] in > :0 > at > ScriptUpdater.Program.ConfigurationProviderFor > (APIUpdater.Framework.Configuration.CompilerResponseFile > responseFile, > System.Text.RegularExpressions.Regex > configSourceFilter, > APIUpdater.Framework.Log.ConsoleUpdateListener > logger) [0x000e1] in > :0 > at ScriptUpdater.Program.Main > (System.String[] args) [0x00099] in > :0 > [ERROR] FATAL UNHANDLED EXCEPTION: > System.InvalidOperationException: > Operation is not valid due to the > current state of the object. at > Mono.Cecil.ModuleDefinition.ReadSymbols > (Mono.Cecil.Cil.ISymbolReader reader) > [0x0002f] in :0 at > Mono.Cecil.ModuleReader.ReadSymbols > (Mono.Cecil.ModuleDefinition module, > Mono.Cecil.ReaderParameters > parameters) [0x0004a] in :0 at > Mono.Cecil.ModuleReader.CreateModule > (Mono.Cecil.PE.Image image, > Mono.Cecil.ReaderParameters > parameters) [0x00081] in :0 at > Mono.Cecil.ModuleDefinition.ReadModule > (Mono.Disposable1[T] stream, > System.String fileName, > Mono.Cecil.ReaderParameters > parameters) [0x0000d] in > :0 > at > Mono.Cecil.ModuleDefinition.ReadModule > (System.String fileName, > Mono.Cecil.ReaderParameters > parameters) [0x0006c] in > :0 > at > Mono.Cecil.AssemblyDefinition.ReadAssembly > (System.String fileName, > Mono.Cecil.ReaderParameters > parameters) [0x00000] in > :0 > at > APIUpdater.Framework.Configuration.ObsoleteAttributeBasedConfigurationFactory..ctor > (System.String pathToAssemblyWithAttr, > System.Boolean > reportSourceInformation, > System.String[] > potentiallyReferencedAssemblyPaths) > [0x00079] in > :0 > at > APIUpdater.Framework.Util.IEnumerableExtensions.ComputeConfigurationProvider > (System.Collections.Generic.IEnumerable1[T] > assemblyPaths, > APIUpdater.Framework.Configuration.ConfigurationProvider > provider, System.String[] references) > [0x00032] in > :0 > at > ScriptUpdater.Program.ConfigurationProviderFor > (APIUpdater.Framework.Configuration.CompilerResponseFile > responseFile, > System.Text.RegularExpressions.Regex > configSourceFilter, > APIUpdater.Framework.Log.ConsoleUpdateListener > logger) [0x000e1] in > :0 > at ScriptUpdater.Program.Main > (System.String[] args) [0x00099] in > :0 > > Build completed with a result of > 'Failed' > UnityEngine.GUIUtility:ProcessEvent(Int32, > IntPtr, Boolean&) (at > /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189) > > UnityEditor.BuildPlayerWindow+BuildMethodException: > 4 errors at > UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer > (UnityEditor.BuildPlayerOptions > options) [0x00270] in > /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:187 > at > UnityEditor.BuildPlayerWindow.CallBuildMethods > (System.Boolean askForBuildLocation, > UnityEditor.BuildOptions > defaultBuildOptions) [0x00080] in > /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95 > UnityEngine.GUIUtility:ProcessEvent(Int32, > IntPtr, Boolean&) (at > /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by oliVRqin · Oct 19, 2020 at 09:34 AM

Was just agonizing over a similar problem, and I'm using Unity 2020.1.9f1 on a Mac; this solution might not work for you cause of different circumstances but it worked for me. My solution was to go to Edit -> Project Settings -> Player -> Under Other Settings, change the minimum API from whatever the default is to 'Marshmallow' Level 23. That's it, worked like a dream. Good luck!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

143 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

Related Questions

Oculus Go OBB Expansion File Crashes App when Loading Second Scene 0 Answers

Building for GearVR with Android Pro 0 Answers

Oculus/Android/gradle build issue 0 Answers

Android and Oculus builds from the same project 2 Answers

my script is working in Unity, editor, but didn't work On Android. 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