java.util.NoSuchElementException compiling for iOS
See original GitHub issueDescribe the bug Compiling a kotlin multiplatform project for iOS fails with “java.util.NoSuchElementException: Key value-parameter … is missing in the map.” The parameter referenced is a val in an abstract base class with a default value.
To Reproduce
@Serializable abstract class Base( val foo: String = "" )
./gradlew clean build will fail running compileKotlinIos task
Expected behavior
Environment
- Kotlin version: 1.3.31
- Library version: 0.11.0
- Kotlin platforms: Native multiplatform
- Gradle version: 5.3.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Cannot run iOS and macOS multiplatform tests in Android ...
Now run the common test on iOS and observe it failing the below stacktrace. Running the same Gradle task from the commandline works...
Read more >An element could not be located on the page using the given ...
NoSuchElementException : An element could not be located on the page using ... findElement(AppiumDriver.java:1) at io.appium.java_client.ios.
Read more >NoSuchElementException - Cisco Community
com.audium.server.AudiumException: A built-in element encountered an exception of type java.util.NoSuchElementException. at com.audium.server.
Read more >How to Fix java.util.NoSuchElementException in Java?
There are mainly two types of exception in java as follows: 1. Checked Exception: The exception which is checked by the compiler for...
Read more >Mac import java.util.Scanner not working with TextMate?
NoSuchElementException : No line found at java.util. ... I had no idea textmate would compile/run code for you, i somehow (the name, perhaps....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
getting the same error in iOS KMM code. Any resolve for this?
I’ve re-checked provided reproducers, and can conclude that error does not happen on Kotlin 1.4.21