Issue
I tried ./gradlew build
but that didn't work, because it doessnt see the changes made in gradle file. The only thing that works for me is restarting and invalidating cache, but there must be a better way to do it.
Thank you
Solution
You should try running ./gradlew clean
before building.
Answered By - Nisha Mistry
Answer Checked By - - Marilyn (ReactFix Volunteer)