Android gradle build: running assembleDebug makes release tasks of project dependencies being called -


when running assembledebug, release related tasks of projects depend on called.

e.g. have project called 'x' depends on 'y'.

when gradle assembledebug calls y:mergereleaseproguardfiles, packagereleaseaidl, etc... etc..

android library modules publishes "release" build type. don't have "debug" build type. application module build debug version, use release version of library.

you can enable "debug" build type of library dependency using following in module's build.gradle file:

android {   publishnondefault true   ... } 

then when using dependency in other module, should use this:

dependencies {   releasecompile project(path: ':moduley', configuration: 'release')   debugcompile project(path: ':moduley', configuration: 'debug') } 

i using same trick in application. have shared module , use debug version of module. find details here:

https://github.com/pomopomo/wearpomodoro/blob/develop/mobile/build.gradle#l90


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -