Error in all the classes files: R cannot be resolved

前端 未结 5 457
深忆病人
深忆病人 2021-01-29 10:34

Example code:

setContentView(R.layout.main);

Error:

R cannot be resolved

There\'s this error in all the class

5条回答
  •  清酒与你
    2021-01-29 11:20

    If you already updated the SDK tools, re-open the SDK manager and check under the "Tools" section that "Android SDK Build tools" are installed and eventually, update them. That made the trick for me yesterday.

提交回复
热议问题