user2903699
user2903699

Reputation: 11

Android studio problems with android.R resources

When I needed Android's resources from android.R, Android Studio didn't recognize keyword android, so I imported by myself with the line of code below:

import android.R;

after this, all appearances of R. were from android.R, i.e. it didn't recognize my own resources

How to fix this problem?

Upvotes: 0

Views: 128

Answers (1)

Junghoon Lee
Junghoon Lee

Reputation: 154

remove android.R import and try import your package resource like this.

import com.yourpackage.name.R;

Upvotes: 2

Related Questions