In build.gradle I use

... releaseCompile('com.google.firebase:firebase-core:9.2.1') releaseCompile('com.google.firebase:firebase-ads:9.2.1') releaseCompile('com.google.firebase:firebase-crash:9.2.1') ... 

In the debug version this is all I don’t need and I have to comment on parts of the code and imports so that there are no assembly errors. Is it possible to somehow automate this process so that gradle ignores dependent portions of code and imports?

  • do you comment because it takes a long time to build? - Android Android
  • Similarly, it builds 1.5-2 times faster. - Vladimir VSeos
  • This is if the project is not big - Vladimir VSeos
  • I just solved this problem by the way. I found this option: file-> settings-> build, execution, deployment-> gradle and ticked offline work. Instead of 2.5 minutes I got seconds 20 build speeds - Android Android
  • about offline work and deamon, and about parallel, and about configureondemand I know :) - Vladimir VSeos

0