79414113

Date: 2025-02-05 08:43:33
Score: 3
Natty:
Report link

I tried the below commands, which are for clearing local/global caches for android and gradle, which worked for me and I think would work for everyone having the same issue/error while building the react native android app :-

  1. Delete node_modules :-

    rm -rf node_modules

  2. Clear Yarn Cache:-

    yarn cache clean

  3. Install npm packages :-

    yarn OR npm install

  4. Start the server and run android with the commands used.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ravi Dubey