Webview.EvaluateJavaScriptAsync MissingMethod Exception

NielsCupNielsCup NLMember ✭✭✭

I am trying to run some javascript via the Webview.EvaluateJavaScriptAsync method. It is working on iOS but on Android it results in the following error: System.MissingMethodException

I am using Xamarin.Forms 3.4.0.1008975

Any hints on this?

Answers

  • NielsCupNielsCup NLMember ✭✭✭
    edited November 2018

    Problem solved: I just updated to Xamarin.Forms 3.4.0.1008975 and did a rebuild, but I had to remove the bin and objects folders and restart VS before doing the rebuild.

  • GaetanFGaetanF USMember ✭✭✭

    Rule of thumb:

    When upgrading xamarin forms, always clean your solution, delete the obj/ and bin/ folders of each project then rebuild the solution.

    (In general, do that with any API/Framework you are using which is part of the foundation of your product)

  • NielsCupNielsCup NLMember ✭✭✭
    edited November 2018

    Sure, I know that but somehow I sometimes forget it. This mostly happens at the end of the day after 10 hours of coding. And then I solve it within 5 minutes the next morning, as in this case ;) ...

Sign In or Register to comment.