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.

"runtimeapi" is not resolved

See original GitHub issue

Hi, I’m trying to use realm-kotlin in my project. I believe I’ve followed all the steps described and was able to see some Realm annotations, but runtimeapi was not resolved, thus RealmObject was not resolved either. Project wasn’t built, getting something like this:

e: java.lang.AssertionError: Unbound symbols not allowed

Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@51380bec (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@62754e9 (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@4e45926e (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@734eb126 (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@72e875ae (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@23766be4 (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@588bd86e (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@7ef5db91 (NON-PUBLIC API)
Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@5afd30b8 (NON-PUBLIC API)
...

I assumed there is something wrong with my project or other dependencies maybe, so I tried a kmm-sample from this repo. It won’t build either but with following message:

e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/Expression.kt: (21, 17): Unresolved reference: runtimeapi
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/Expression.kt: (22, 17): Unresolved reference: runtimeapi
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/Expression.kt: (24, 20): Unresolved reference: RealmObject
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/Expression.kt: (28, 2): Unresolved reference: RealmModule
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/ExpressionRepository.kt: (28, 21): Type mismatch: inferred type is Entities but KClass<out RealmObject> was expected
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/ExpressionRepository.kt: (36, 39): Type mismatch: inferred type is Expression but RealmObject was expected
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/ExpressionRepository.kt: (44, 30): Type mismatch: inferred type is Expression but RealmObject was expected
e: /Users/petr/Downloads/realm-kotlin-master/examples/kmm-sample/shared/src/commonMain/kotlin/io/realm/example/kmmsample/ExpressionRepository.kt: (48, 30): Type mismatch: inferred type is Expression but RealmObject was expected

Am I missing something?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
grigorevpcommented, Apr 14, 2021

@rorbech Well, I see that there was a commit yesterday while I used two-day old source. I’ve tried it out, but got this now:

> Task :shared:linkReleaseFrameworkIosArm64 FAILED
e: Compilation failed: null

 * Source files: 
 * Compiler version info: Konan: 1.4.30 / Kotlin: 1.4.30
 * Output kind: FRAMEWORK

e: java.lang.NullPointerException
        at org.jetbrains.kotlin.backend.konan.optimizations.Devirtualization$DevirtualizationAnalysis.calleeAt(Devirtualization.kt:267)
        at org.jetbrains.kotlin.backend.konan.optimizations.Devirtualization$DevirtualizationAnalysis.access$calleeAt(Devirtualization.kt:123)
        at org.jetbrains.kotlin.backend.konan.optimizations.Devirtualization$DevirtualizationAnalysis$ConstraintGraphBuilder.dfgNodeToConstraintNode(Devirtualization.kt:1192)
        at org.jetbrains.kotlin.backend.konan.optimizations.Devirtualization$DevirtualizationAnalysis$ConstraintGraphBuilder.edgeToConstraintNode(Devirtualization.kt:1042)
        at org.jetbrains.kotlin.backend.konan.optimizations.Devirtualization$DevirtualizationAnalysis$ConstraintGraphBuilder.access$edgeToConstraintNode(Devirtualization.kt:760)
...

I’ve also tried all these restarts, clean builds, invalidates etc.

Speaking about my own project, I’ve tried to invalidate & restart, but that didn’t work for me. Are there any specific requirements to IDE or plugin versions? Maybe some other dependencies’ versions? It seems that the problem is not project-related, but machine-related or me-related 😐

0reactions
rorbechcommented, May 18, 2021

Closing as #155 is merged. Please report it if you see it again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

composer-runtime-api ^2.0.0 -> no matching package found.
Using Docker installation method No AzuraCast version Rolling Release #6183870 ... composer-runtime-api ^2.0.0 -> no matching package found.
Read more >
Can't install symfony/maker-bundle - Stack Overflow
Problem 1 - ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found. - ocramius/proxy-manager ...
Read more >
How To Fix the “API-Ms-Win-Crt-Runtime-l1-1-0.dll Missing ...
Try reinstalling the program to fix this problem." "This application has failed to start because Api-ms-win-crt-runtime-l1-1-0.dll was not found.
Read more >
API - esbuild
This API call is used by the command-line interface if no input files are provided and the --bundle flag is not present. In...
Read more >
Transition from Java 8 to Java 11 - Azure - Microsoft Learn
A guide for managing the move from Java 8 to Java 11.
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