Cannot find R.layout.activity_main

后端 未结 29 2316
轮回少年
轮回少年 2020-12-01 01:58

I was trying to work out with multiple layout using some online tutorials. The thing is my program was building and compiling correctly as long as there was only one XML fil

29条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 02:30

    The stupid mistake I made to cause this error was to have the wrong package string in my AndroidManifest.xml file. I'd left the string set in the tutorial, but had used my own when setting up the project.

    
    
    

提交回复
热议问题