Reputation: 11
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
Reputation: 154
remove android.R import and try import your package resource like this.
import com.yourpackage.name.R;
Upvotes: 2