question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.util.NoSuchElementException compiling for iOS

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sud007commented, Nov 5, 2020

getting the same error in iOS KMM code. Any resolve for this?

0reactions
sandwwraithcommented, Dec 17, 2020

I’ve re-checked provided reproducers, and can conclude that error does not happen on Kotlin 1.4.21

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found