android.content.res.Resources$NotFoundException: Resource ID #0x7f040019

前端 未结 1 1348
暖寄归人
暖寄归人 2020-12-20 00:47

I do not know why I receive that exception in the line setContentView(R.layout.activity_main);. I have tried to CLEAN the project, REBUILD, RERUN, REEVERYTHING.

相关标签:
1条回答
  • 2020-12-20 01:21

    You need to create an activity_main.xml file without the v21 qualifier so the system can default back to that file whenever it's running on lower API emulators.

    Your resources should end up being something like:


    You can learn more about qualifiers in this link.

    0 讨论(0)
提交回复
热议问题