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.

enter image description here

ok, found problem. adding following line, sdk module got visibility androidtest classes.

androidtestcompile project(path : ':sdk', configuration : 'proddebug') 

more explanation at here.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -