Git Product home page Git Product logo

Comments (5)

Alex009 avatar Alex009 commented on July 4, 2024

Hi. What gradle version used?

from moko-resources.

bravo-delta avatar bravo-delta commented on July 4, 2024

Hello, I'm running gradle 7.5.

Thanks for the pointer, that seems to be the issue.
It looks like the update to Kotlin 1.9.20 requires gradle 8.5

The error went away.
I was only looking at the minimum requirement of Gradle 7.5 that is mentioned in the moko-resources description and did not look at the one that Kotlin requires.

There is a new error now, but that seems to be related to a resource, where the previous moko version was less restrictive maybe.

java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at dev.icerock.gradle.utils.StringExtKt.convertXmlStringToAndroidLocalization(StringExt.kt:66) at dev.icerock.gradle.generator.resources.string.AndroidStringResourceGenerator.generateLanguageFile(AndroidStringResourceGenerator.kt:73) at dev.icerock.gradle.generator.resources.string.AndroidStringResourceGenerator.generateResourceFiles(AndroidStringResourceGenerator.kt:54) at dev.icerock.gradle.generator.ResourceTypeGenerator.generateFiles(ResourceTypeGenerator.kt:179) at dev.icerock.gradle.generator.ResourcesGenerator.generateResources(ResourcesGenerator.kt:197) at dev.icerock.gradle.tasks.GenerateMultiplatformResourcesTask.generate(GenerateMultiplatformResourcesTask.kt:166)

I'll see if I can figure that out.

from moko-resources.

bravo-delta avatar bravo-delta commented on July 4, 2024

Most likely it has to do with this change: StringExt.kt String.convertXmlStringToAndroidLocalization

I have various strings that are empty, e.g. like:
<string name="empty_string"></string>

If these are getting into that method, the call to this[0] fails.

from moko-resources.

AntsyLich avatar AntsyLich commented on July 4, 2024

Another example with plurals

<plurals name="missing_chapters">
    <item quantity="one"/>
    <item quantity="other">Жоқ %1$s тараулары</item>
</plurals>

from moko-resources.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.