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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

You 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