java - How to set a custom Android APK build location -


i have modular android app:

  • core
    -- mod1
    -- mod2
    -- custom_build_location

i have module apks built custom common directory:

core/custom_build_location

i've tried:

core/mod1/build.gradle

def outputpathname = "/media/rev/5431214957ebf5d7/projects/android/core/custom_build_location/mod1.apk"  applicationvariants.all { variant ->     variant.outputfile = file(outputpathname) } 

but following error gets thrown:

error:(30, 0) not set unknown property 'outputfile' object of type com.android.build.gradle.internal.api.applicationvariantimpl. <a href="openfile:/media/rev/5431214957ebf5d7/projects/android/core/mod1/build.gradle">open file</a>   

how can go building project custom build directory?

thank in advance

update

gradle 3.3


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -