android - What happens if I define a class in a build type and a product flavor? -


what happens if define java class product flavor example free , build type example debug.

if build myapp-free-debug.apk gradle class packaged apk?

your question title different question body. trying mix ? build types or build type/flavor?

in case of build type , flavor, think can't build project if class present in flavor and in build type. duplicate class error. when use product flavors, 1 of flavor included in project, definition. class variants must in each product flavors, , not in build types.

in case of build types only, that's i'm trying currently, expected build select java class selected build type, , ignore 1 in main folder not, duplicate class error. asked the question on adt-dev groups, wait , see...


edit : had response xavier previous question, , design it's not possible override class defined in main directory. says, gave few workarounds handle need. see link above if interested.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -