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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -