Comments (5)
Hi. What gradle version used?
from moko-resources.
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.
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.
Another example with plurals
<plurals name="missing_chapters">
<item quantity="one"/>
<item quantity="other">Жоқ %1$s тараулары</item>
</plurals>
from moko-resources.
Related Issues (20)
- Cannot change attributes of dependency configuration ':xxx:iosX64CInteropApiElements' after it has been resolved HOT 11
- Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false' HOT 1
- Load image as plain resource by string on iOS
- Slow loading of string resource at first open of screen HOT 6
- Suggested improvements to CopyFrameworkResourcesToAppTask HOT 1
- 0.24.0-beta-4 incorrectly handles plurals with `"` character; displays as `\"` on iOS and doesn't display on Android. HOT 2
- Font caching Issue for ios HOT 9
- Crash when using MR.strings() in unit tests iOS HOT 9
- Are there plans to support linuxX64? HOT 1
- Remove unnecessary dependency HOT 1
- How do I get the text value on JVM? HOT 2
- Have a dumb question about a different approach to save resources directly in a Kotlin file :D HOT 1
- 0.24.0-beta-5 creates invalid unicode escape sequence HOT 8
- Can't use Moko resources for JVM target HOT 3
- Add dark mode variants for images HOT 2
- How use fonts in swift ui
- Svg icons with alpha color become black on iOS
- Formatted localization string from swift code
- Gradle Sync failing in Android Studio HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moko-resources.