Metamask mobile code not building on localhost

I wanted to build MetaMask locally so I cloned the MetaMask-mobile repo
& tried building it on my android phone using the command npx react-native run-android -- --warning-mode=all and I got this error that I’m not able to resolve.

  • What went wrong:
    Included build ‘C:\Users\Path\MetaMask-mobile\node_modules\react-native\packages\react-native-codegen\android’ does not exist.

How do I resolve this error so that I can build it locally on an android simulator or when I connect it to my android device?

Hey @Karan1, welcome to the MetaMask community! :fox_face:

If I had to guess, this issue is local and/or with your text editor. Try tweaking or updating things there.

1 Like

I’m sorry I found the issue. I should have read the MetaMask-mobile’s README :sweat_smile:

The code is built using React-Native and running code locally requires a Mac or Linux OS.

I was using a Windows laptop, hence I was getting these errors.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.