android - Having different dependencies in grade builds? -


i have debug build , release build of android application need different dependencies each, possible in android studio?

i have section:

buildtypes {         debug {             minifyenabled false         }         release {             minifyenabled true         } } 

and section dependencies:

dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'joda-time:joda-time:2.7'     compile 'org.joda:joda-convert:1.4' } 

i want remove joda-convert dependancy if using debug build results in "duplicate files in packaging of apk" error.

any appreciated?

you can use

releasecompile 'org.joda:joda-convert:1.4' 

then joda-convert used release


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -