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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -