Issue
I'm getting error while compile gradle project
Error:(128, 35) error: cannot find symbol variable ic_contact_picture
but such resource is most definitely available, Android Studio even show me picture of that resource in left border
I tried clean, build, rebuild, restart or sync Studio/project, as advised i.e. here, all without success.
What I'm doing wrong?
Solution
You are using the R class from the Android system, i.e. android.R. If the drawable ic_contact_picture is your own picture, then you want to use R.drawable.ic_contact_picture instead, without the android. prefix.
If you intended to use the Android system drawable, you have to copy the specific drawable to your app, since the ic_contact_picture is not made public by the SDK.
Answered By - Floern

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.