Reputation: 99
I am beginner in developing test automation for Mobile apps, and already I am facing "Cannot resolve symbol........." issues. I have also done a "sync to Gradle".
I have a MainActivityTest class which consist of the following :
As can be seen, the red-colored texts are giving me the issues of "Cannot resolve symbol when mouse-over them.
The following is the Gradle in my app module
Hope to have advice as what have I done wrong.
Upvotes: 0
Views: 3646
Reputation: 432
Steps you can explore:
Step 1: File
> Sync Project with Gradle Files
.
Step 2: If it doesn't work even now, File
> Invalidate Caches and Restart
.
Step 3: After you restart, you can Clean Project, Rebuild Project.
Another Step: File
> Close Project
, and reopen it.
Edit:
If you didn't find any solution to the problem with the above steps you can follow the following steps.
app/
, build/
, gradle/
, release/
folders and build.gradle
, gradlew
, gradle.properties
, 'gradle.bat,
settings.gradle,
local.properties` files.build/
folder. (Don't worry nothing is going to happen! This folder is something that is generated).app/
, and delete the build/
folder in that as well.Upvotes: 4