"runtimeapi" is not resolved
See original GitHub issueHi, 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:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top 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 >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
@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:
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 😐
Closing as #155 is merged. Please report it if you see it again.