5

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

Paul Sizon
  • 247
  • 4
  • 12

2 Answers2

4

You should try running ./gradlew clean before building.

Nisha Mistry
  • 121
  • 4
0

change directory to /{your project}/android then run below commands

  1. ./gradlew clean
  2. ./gradlew build

Note :- you will get error : ./gradlew: No such file or directory if you are trying gradlew commands outside android folder.

also check this : Why run 'gradle clean build' instead of 'gradle build'?