menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

Can't access Apollo Multiplatform classes from Kotlin Multiplatform project

February 7, 2021 at 11:05pm

Can't access Apollo Multiplatform classes from Kotlin Multiplatform project

February 7, 2021 at 11:05pm
I've just created a new KMP project from Android studio, added Apollo MP as defined here: https://www.apollographql.com/docs/android/essentials/get-started-multiplatform/
plugins { // ... id("com.apollographql.apollo").version("x.y.z") }
sourceSets { commonMain { dependencies { // implementation("com.apollographql.apollo:apollo-runtime-kotlin:x.y.z") } } }
The classes are generated under 'build/generated/source/apollo' but i can't access them nor any Apollo classes from the commonMain code.
Also i've noticed that Apollo does not appear under the project External Libraries as well.
What am i missing? Thanks

February 8, 2021 at 8:53am
Hi (shiran-e) ! Any chance you can share your project?
  • reply
  • like
Additional thing to try: Does it build from the command line? If yes that's an IDE issue so try with IntelliJ or bumping Android Gradle Plugin version?
  • reply
  • like