I have signed up and downloaded a demo app and opened the Mobile Solution and tried to run Droid app and I get the following error:
Unhandled Exception:
System.MissingMethodException: Method not found: void AutoMapper.IMappingExpression2.ConvertUsing(System.Func
2<!0, !1>) occurred
Very disappointed in the first experience of Asp.net Zero
Exception from DeviceLog:
Time Device Name Type PID Tag Message
11-26 15:38:03.240 Android_Accelerated_x86_Oreo Info 4773 MonoDroid System.MissingMethodException: Method not found: void AutoMapper.IMappingExpression2.ConvertUsing(System.Func
2<!0, !1>)
at Abp.AutoMapper.AbpAutoMapperModule.<CreateMappings>b__6_0 (AutoMapper.IMapperConfigurationExpression configuration) [0x0002b] in D:\Github\aspnetboilerplate\src\Abp.AutoMapper\AutoMapper\AbpAutoMapperModule.cs:48
at AutoMapper.MapperConfiguration.Build (System.Action1[T] configure) [0x00006] in C:\projects\automapper\src\AutoMapper\MapperConfiguration.cs:316 at AutoMapper.MapperConfiguration..ctor (System.Action
1[T] configure) [0x00000] in C:\projects\automapper\src\AutoMapper\MapperConfiguration.cs:57
at AutoMapper.Mapper.Initialize (System.Action1[T] config) [0x00000] in C:\projects\automapper\src\AutoMapper\Mapper.cs:46 at Abp.AutoMapper.AbpAutoMapperModule.CreateMappings () [0x0003d] in D:\Github\aspnetboilerplate\src\Abp.AutoMapper\AutoMapper\AbpAutoMapperModule.cs:57 at Abp.AutoMapper.AbpAutoMapperModule.PostInitialize () [0x00000] in D:\Github\aspnetboilerplate\src\Abp.AutoMapper\AutoMapper\AbpAutoMapperModule.cs:36 at Abp.Modules.AbpModuleManager+<>c.<StartModules>b__15_2 (Abp.Modules.AbpModuleInfo module) [0x00000] in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:48 at System.Collections.Generic.List
1[T].ForEach (System.Action`1[T] action) [0x0001e] in
4 Answer(s)
-
0
- close Visual Studio and clear all BIN & OBJ folders
- open Visual Studio and set to DEBUG mode
- disable linker
- Sometimes changing the Target Android Version and setting the Java Max Heap Size to 1024m in Android project settings solve the issue.
-
1
hi,
see this issue https://github.com/aspnetzero/aspnet-zero-core/issues/1960 summary: downgrade your AutoMapper packages to v7.0.1 on Android & iOS projects
-
0
downgrading AutoMapper to v7.0.1 on Android project worked Thanks alper!