Android - activity_main cannot be resolved or is not a field

后端 未结 11 1781
栀梦
栀梦 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:36

    Heh.. similar prob.. turns out somewhere along the line I had renamed the map fragment ID in the XML layout file.. Was looking for a fragment ID that did not exists.. hope it helps someone else.

提交回复
热议问题