locked
Mismatch between the processor architecture RRS feed

  • Question

  • User381913 posted

    Hi. I am using Xamarin.Forms on Visual Studio 2017. I am trying to use a dll that is compiled on 64bit. When i run the app on android emulator, it has a warning of "mismatch between the processor architecture" and the app crashed on the emulator. If i disable the initialization of the said dll, app runs fine.

    Is it possible to use external dll's or api's on xamarin and if yes, how can we use those properly on xamarin.

    Thanks...

    Wednesday, January 30, 2019 10:16 AM

Answers

  • User369979 posted

    As I said above only .Net Standard framework can be embedded in a Xamarin.Forms project. For Xamarin.Android, mono supports almost everything in .Net Framework except some special apis: https://www.mono-project.com/docs/about-mono/compatibility/ So maybe MT5 Manager used some apis that mono doesn't support, it causes your emulator's crash. You'd better embed a mono library to use its full features.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, February 1, 2019 2:30 AM

All replies

  • User369979 posted

    What emulator and dll did you use? Xamarin.Forms apps are built with .Net Standard now, so your dll must support .Net Standard. You could try another nuget package to see if it also crashes on your side. i.e. https://github.com/jamesmontemagno/Xamarin.Plugins

    Thursday, January 31, 2019 8:34 AM
  • User381913 posted

    I am using MT5 Manager API for .Net dll. which i built on .Net Framework 4.5.2 as the documentation states.

    Thursday, January 31, 2019 10:21 AM
  • User369979 posted

    As I said above only .Net Standard framework can be embedded in a Xamarin.Forms project. For Xamarin.Android, mono supports almost everything in .Net Framework except some special apis: https://www.mono-project.com/docs/about-mono/compatibility/ So maybe MT5 Manager used some apis that mono doesn't support, it causes your emulator's crash. You'd better embed a mono library to use its full features.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, February 1, 2019 2:30 AM
  • User381913 posted

    thanks

    Friday, February 1, 2019 4:08 AM