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
Post a Comment