user7673749
user7673749

Reputation:

Why I cannot access the image in my drawable folder in android studio?

Here is the screenshot of my code. I want to access the image in my drawable folder and pass it to a class. However, I have put in an image name as asif.JPG in a drawable folder but I cannot access it using R.drawable.asif.

Upvotes: 0

Views: 438

Answers (1)

Ramesh Yankati
Ramesh Yankati

Reputation: 1217

Do clean build and it will regenerate R.java class.

Upvotes: 1

Related Questions