Which Gradle task does AS run when I hit “Build &g...
# android-studio
f
Which Gradle task does AS run when I hit “Build > Make Project”?
c
Copy code
Executing tasks: [:app:assembleDebug, :app:assembleDebugUnitTest, :app:assembleDebugAndroidTest, :android-test-common:assembleDebug, :android-test-common:assembleDebugUnitTest, :android-test-common:assembleDebugAndroidTest] in project <redacted>
in my case. you might see something else
f
Yes. I see this:
Copy code
[:app:assembleDebug]
Do you know why mine is different from yours?
c
we have totally different build setups I would assume
a
It assembles the current application target + any tests that may depend on it + does optimisations for generating the apk that is custom to Android Studio: https://issuetracker.google.com/issues/164145066 I generally advise to use the command line as much as you can, unless you don’t care about the impact of that button and/or don’t have a big enough project at hand.
c
Also, consider adding gradle doctor to your build. its maintained by someone at gradle and it'll disallow you from doing things like hitting the make project button because you typically want something else instead.
102 Views