I have an android studio project and it includes c++ code. The code is pretty big and it takes about 1,5 hr to compile it. Every time when I hit "run" or "debug" button, the first task in gradle is :ProjectName:clean, and therefore it recompiles whole code again. Even if I first press "Make" or "Build" button and then "Run", it cleans and rebuild anyway.
The question is: how to disable the "clean" task in the beginning of all tasks? And how to make ndk recompile only changed files?