wingchi
05/07/2020, 8:36 PMCould not initialize class com.apollographql.apollo.compiler.parser.Schema
Anyone run into something similar before?mbonnin
05/07/2020, 10:30 PM--stacktrace
?private val UTF8_BOM = "EFBBBF".decodeHex()
That's most likely because you have an older okio version in your buildSrc
classpathwingchi
05/07/2020, 10:33 PMmbonnin
05/07/2020, 10:34 PM2.5.0
?wingchi
05/07/2020, 10:44 PMmbonnin
05/07/2020, 10:47 PM./gradlew buildEnvironment
. That'll should tell you waht okio
and apollo-compiler
dependencies are usedwingchi
05/07/2020, 10:55 PM1.16.0
mbonnin
05/07/2020, 10:57 PMI'm not seeing apolloYou might have to run it in your module:
./gradlew :$module:buildEnvironment
wingchi
05/07/2020, 11:01 PMapollo-compiler:2.0.2
and okio:2.5.0
mbonnin
05/07/2020, 11:02 PMdecodeHex
method which is a recent addition of okiowingchi
05/07/2020, 11:03 PMCaused by: java.lang.NoClassDefFoundError: Could not initialize class com.apollographql.apollo.compiler.parser.Schema
mbonnin
05/07/2020, 11:07 PMbuild.gradle.kts
files, can you try adding something like this at the root of the script ?
println("test".decodeHex().toString())
In the same build.gradle.kts file where you apply the apollo plugin ? To make sure okio dependency is working well ?wingchi
05/07/2020, 11:07 PMmbonnin
05/07/2020, 11:10 PMwingchi
05/07/2020, 11:11 PMmbonnin
05/07/2020, 11:11 PM-Dorg.gradle.debug=true
and set breakpoints in intelliJ to have more details where the crash happenswingchi
05/07/2020, 11:13 PMprintln
anywhere in the root of build.gradle.kts
?mbonnin
05/07/2020, 11:13 PMwingchi
05/07/2020, 11:15 PMmbonnin
05/07/2020, 11:16 PMByteString.Companion
class ?wingchi
05/07/2020, 11:18 PMbuild.gradle.kts
mbonnin
05/07/2020, 11:19 PMwingchi
05/07/2020, 11:20 PMmbonnin
05/07/2020, 11:20 PMwingchi
05/07/2020, 11:20 PM