R cannot be resolved - Android, no import android.R; statement

前端 未结 10 1081
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 03:55

Ok, I am working on a new app and everything worked fine as long as I used a Relative View. However, I want a tabbed layout so I switched what I had (not much so far since

10条回答
  •  醉梦人生
    2020-12-11 04:46

    You should import your own projects R class rather than androids default R class ie.
    your.app.package.R

    This will make the values defined under the res folder in your class . After that refresh and then clean your project .

提交回复
热议问题