admin管理员组文章数量:1384788
I'm trying to build an Android app using IntelliJ.
When I tried to create a new UI, I have this issue: template not found: layoutResourceFile.xml
I tried invalidate cache then rerun. It didn't work.
Anyone has encountered similar issue and troubleshot it?
Current ver: IntelliJ IDEA 2024.3.3 (Community Edition)
I'm trying to build an Android app using IntelliJ.
When I tried to create a new UI, I have this issue: template not found: layoutResourceFile.xml
I tried invalidate cache then rerun. It didn't work.
Anyone has encountered similar issue and troubleshot it?
Current ver: IntelliJ IDEA 2024.3.3 (Community Edition)
Share Improve this question asked Mar 18 at 7:12 Ricardo WuRicardo Wu 233 bronze badges1 Answer
Reset to default 1You can check code templates in android studio settings (image below).
If its not there you can try restarting the SDK Manager or reinstalling the SDK. You could also try creating just a layout xml file (image below). If neither of those work, create a new file with a .xml extension, then copy and paste the template from https://developer.android/develop/ui/views/layout/declaring-layout (make sure the file is in the res/layout folder)
本文标签: androidTemplate not found layoutResourceFilexmlStack Overflow
版权声明:本文标题:android - Template not found: layoutResourceFile.xml - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744518426a2610305.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论