ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android exception

realworld666 opened this issue · comments

I'm using Unity 2018.3.14f1 and I'm getting an exception on boot when built for Android (non Il2cpp build) Do you know what the cause of this exception is?

ArgumentException: Type 'Zenject.ZenjectManagersInstaller' does not have a default constructor
Parameter name: type

Managed Stack Trace:

System.Linq.Expressions.Expression.New (System.Type type) (at :0)
Zenject.Internal.ReflectionInfoTypeInfoConverter.TryCreateFactoryMethodCompiledLambdaExpression (System.Type type, System.Reflection.ConstructorInfo constructor) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.Internal.ReflectionInfoTypeInfoConverter.TryCreateFactoryMethod (System.Type type, Zenject.Internal.ReflectionTypeInfo+InjectConstructorInfo reflectionInfo) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.Internal.ReflectionInfoTypeInfoConverter.ConvertConstructor (Zenject.Internal.ReflectionTypeInfo+InjectConstructorInfo injectConstructor, System.Type type) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.TypeAnalyzer.CreateTypeInfoFromReflection (System.Type type) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.TypeAnalyzer.GetInfoInternal (System.Type type) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.TypeAnalyzer.TryGetInfo (System.Type type) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.DiContainer.InstantiateInternal (System.Type concreteType, System.Boolean autoInject, System.Collections.Generic.List1[T] extraArgs, Zenject.InjectContext context, System.Object concreteIdentifier) (at <624c4c5c619446398fcc2028247171d2>:0) Zenject.DiContainer.InstantiateExplicit (System.Type concreteType, System.Boolean autoInject, System.Collections.Generic.List1[T] extraArgs, Zenject.InjectContext context, System.Object concreteIdentifier) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.DiContainer.InstantiateExplicit (System.Type concreteType, System.Collections.Generic.List1[T] extraArgs) (at <624c4c5c619446398fcc2028247171d2>:0) Zenject.DiContainer.Instantiate (System.Type concreteType, System.Collections.Generic.IEnumerable1[T] extraArgs) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.DiContainer.Instantiate[T] (System.Collections.Generic.IEnumerable1[T] extraArgs) (at <624c4c5c619446398fcc2028247171d2>:0) Zenject.DiContainer.Instantiate[T] () (at <624c4c5c619446398fcc2028247171d2>:0) Zenject.Installer1[TDerived].Install (Zenject.DiContainer container) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.ProjectContext.InstallBindings (System.Collections.Generic.List`1[T] injectableMonoBehaviours) (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.ProjectContext.Initialize () (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.ProjectContext.InstantiateAndInitialize () (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.ProjectContext.get_Instance () (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.SceneContext.RunInternal () (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.RunnableContext.Run () (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.RunnableContext.Initialize () (at <624c4c5c619446398fcc2028247171d2>:0)
Zenject.SceneContext.Awake () (at <624c4c5c619446398fcc2028247171d2>:0)

Moving the discussion to extenject repo here

Any news about this issue? I've reproduced it today.