android - Data Model class is not visible to my AndroidTest classes while is visible to main project -
my project contains 2 modules. main app module , sdk module. have following lines of code in build.gradle file of app module.
dependencies { releasecompile project(path : ':sdk', configuration : 'prodrelease') debugcompile project(path : ':sdk', configuration : 'proddebug') testcompile project(path : ':sdk', configuration : 'mockdebug') ... } therefore, sdk must visible whole of app module. have no problem in project under main folder. however, i'm trying write espresso test cases in order test activity , need create model. model resides somewhere in sdk module. thought module must visible androidtest class seems not. wrote import address manually still not recognizable.
any suggestion appreciated. thanks.
ok, found problem. adding following line, sdk module got visibility androidtest classes.
androidtestcompile project(path : ':sdk', configuration : 'proddebug') more explanation at here.

Comments
Post a Comment