When I compile in Android Studio using the play button, i.e. it will Executing tasks: [:app:assembleProductionRelease]
, I got an APK with size that is smaller than when I run on command line ./gradlew app:assembleProductionRelease
.
Upon investigating the APK differences, apparently the more optimized APK striped away resource that is unused.
I personally would think both ./gradlew app:assembleProductionRelease
and Executing tasks: [:app:assembleProductionRelease]
should behave the same.
Given they are different, how could I investigate what is extra steps in Executing tasks: [:app:assembleProductionRelease]
that help to optimize away the unused resources?