How to define apk output directory when using gradle?
I would like to have possibility to upload apk to shared folder after each build.
How to define apk output directory when using gradle?
I would like to have possibility to upload apk to shared folder after each build.
thats work for me:
or for Gradle 2.2.1+
but "clean" task will not drop that apk, so you should extend clean task as below:
full sample:
This solution is work for
classpath 'com.android.tools.build:gradle:3.1.2'
anddistributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
. Put the following code inside your android scope of app-levelbuild.gradle
file. When you use command./gradlew assembleDebug
or./gradlew assembleRelease
, the output folder will be copied to thedistFolder
.I found the solution that works with the latest Gradle plugin:
For Gradle version 2.2.1 +, you can do this: