ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D
MIT License
2.53k stars 363 forks source link

Android exception #631

Open realworld666 opened 5 years ago

realworld666 commented 5 years ago

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)

svermeulen commented 5 years ago

Moving the discussion to extenject repo here

kekchpek commented 4 years ago

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