Iliya Mashin :
I've written an instrumented test. When I run it I get an error:
/Users/ilamasin/StudioProjects/ecwid/general/build/intermediates/packaged_res/debug/drawable/horizontal_divider_with_padding.xml:6: AAPT: error: resource dimen/horizontal_divider_thickness (aka com.ecwid.android.reports.test:dimen/horizontal_divider_thickness) not found.
It's my drawable in project and it exists. My project runs and works. But test doesn't. Did anyone has this error? I use Junit and Mockito (Sorry for my English)
Shivam Oberoi :
just go to dimen file and add value to this-:
res->values->dimen and give value to dimen/horizontal_divider_thickness
or go to drawable file and pass value i.e 15dp
or 20dp
whatever you want to add.
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=319912&siteId=1