Every folder (activity, fragment, etc.) contains layout folder as expected. But when i try to compile it, I got an error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':android-app:generateUnitsClasses'.
> org.xml.sax.SAXParseException; systemId: file:/.../Workspace/moko-template/android-app/src/main/res/layouts/activity/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
I using Studio 3.6.3 and in IDE this folders are blue(includes).
Also xmlns:android value highlighted red and says "URI is not registered".
I use kotlin gradle build in my android project. I need to separate my xml files, so I write something like this:
Every folder (activity, fragment, etc.) contains layout folder as expected. But when i try to compile it, I got an error:
I using Studio 3.6.3 and in IDE this folders are blue(includes). Also xmlns:android value highlighted red and says "URI is not registered".
How can I compile project using kts?