0

I've been trying to use Apollo GraphQL with Android, following the steps here.

I've managed to get to the point where the necessary files get auto-generated but after that is where I'm stuck. When I try to use the query I get a "Cannot resolve symbol" error. Is there a way I can access my query?

I've tried the suggestion here: Apollo Android Client - Cannot access generated classes on classpath But the class files don't get auto-generated, also even if I import the project directory I still can't access the query.

Here's the code for my query:

query ReadUser($username: String!) {
    readuser(username: $username) {
        username
        email
    }
}

I've tried calling ReadUser, ReadUserQuery, readuser; nothing.

SnakeException
  • 1,148
  • 1
  • 8
  • 26
Chris
  • 29
  • 9

1 Answers1

0

I managed to solve this by copying the generated class file and pasting it into my main package folder

Chris
  • 29
  • 9