0

I'm getting following error after I added string resources to my compose multiplatform project:

Cannot invoke "org.w3c.dom.Node.getNodeValue()" because the return value of "org.w3c.dom.NamedNodeMap.getNamedItem(String)" is null
at org.jetbrains.compose.resources.GenerateResClassTask.getStringIds(GenerateResClassTask.kt:108)
    at org.jetbrains.compose.resources.GenerateResClassTask.fileToResourceItems

I'm trying to build web target. The gradle build fails with above error.

This is my strings.xml file

<resources>
    <string>Hello World</string>
</resources>

1 Answer 1

0

I wasn't giving name to the string entries :P. This compiled successfully

<resources>
    <string name="hello">Hello World</string>
</resources>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.