1

When I create a native module on Android using Kotline getting error Method addObserver must be called on the main thread

enter image description here

  • Please [edit] your question to include your errors + code as **text** rather than as a screenshot. On stack overflow images should not be used for textual content, see [*Discourage screenshots of code and/or errors*](https://meta.stackoverflow.com/a/307500) and [*Why not upload images of code on SO when asking a question*](https://meta.stackoverflow.com/a/285557) for why. For instructions on formatting see *[How do I format my code blocks?](https://meta.stackexchange.com/q/22186)*. A [mcve] showing what you have tried that did not work would maximize your chances of getting help. See [ask]. – dbc Aug 03 '22 at 16:08
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 03 '22 at 17:07

0 Answers0