Issue
I wanted to use a resource folder in my test project with Android Studio to store internationalized strings that I'll only use in my UI tests.
But as I'm able to create the /app/src/androidTest/res
folder, I can't create a resource folder such as "values" in it.
Android Studio says that this folder already exists. It exists, but in my main project under /app/src/main/res.
So can I create resources available only for my test project, and how, or I'am completely wrong and the reason that I can't do it is that I mustn't do it ?
Thanks.
Solution
As mentioned in this answer, you are probably using the wrong package in the import statement.
import com.your.package.test.R;
Answered By - Vedant Agarwala
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.