I use Stetho for my Android app. I wish to remove this whenever I create a Release build or a Prod Flavour... Either is fine.
How do I achieve this?
You can specify that a library should only be used for specific builds by using debugImplementation
instead of implementation
in your build.gradle file. In fact, you can specify any combination of build type and/or flavor. For more details, see Specify Dependencies in the Android documentation.