mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Got Error When run ConfigEvaluator.preconfigured().forKotlin() on Android app Runtime #88
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bayuwijdev on GitHub (Feb 22, 2024).
I'm very excited to learn about Apple Pickle and I just following the documentation of configuration for kotlin and example for config-kotlin,
I have SoldierConfig at my resources.
This is my
SoldierConfig.ktI call the class at MainActivity.kt, like this
I'm successfull on code generation and run it at main() fun, but failed when access the config from the class in app with error
Please help me, what's wrong and how to solve it?
@StefMa commented on GitHub (Feb 22, 2024):
Path.of() was added in API 34. Make sure your phone runs in this version. Then it might work 😉
Otherwise you could try using desugaring
= https://developer.android.com/studio/write/java11-nio-support-table
It seems this brings also support for older android versions.
@StefMa commented on GitHub (Feb 29, 2024):
@bwijayap does this solve/fix the problem?
Would be good to know 🙃