Android - activity_main cannot be resolved or is not a field

后端 未结 11 1795
栀梦
栀梦 2020-12-05 05:40

Previous people have had the same error message, but the solution has always been to remove or modify some import \"android.R\". I have no such import so I\'m really lost

11条回答
  •  情歌与酒
    2020-12-05 06:23

    I am not sure if this will solve your problem, but I have always declared fragment's type in xml with the "name" attribute, not the "class" attribute. Try making your fragment

    
    

提交回复
热议问题