Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-120

"runtimeapi" is not resolved

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: