You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added the slf4j dependency and was able to get past the NoClassDefFoundError. I now get:
java.lang.NoClassDefFoundError: graphql.parser.antlr.GraphqlLexer
at graphql.parser.Parser.parseDocument(Parser.java:18)
at graphql.GraphQL.execute(GraphQL.java:63)
at graphql.GraphQL.execute(GraphQL.java:54)
at graphql.GraphQL.execute(GraphQL.java:46)
at graphql.GraphQL.execute(GraphQL.java:42)
at providerbrowser.wellmatch.com.providerbrowser.MainActivity.onCreate(MainActivity.java:39)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
I got the same error although already set mavenCentral()
`Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define Lorg/antlr/v4/runtime/ANTLRErrorListener;`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANWZYbvUAQKQiMBTtkmrAjdzg3O7is1ks5rD31DgaJpZM4Fj15_>
.
I am sorry I am not sure then why you are having this error. Maybe google
for "android debug antlr runtime?"
чт, 1 дек. 2016 г. в 21:32, IHNEL <notifications@github.com>:
I use v2.2.0: compile 'com.graphql-java:graphql-java:2.2.0'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANWZT04DlSCg2pX_a0UbP0dpGdRI131ks5rD4MfgaJpZM4Fj15_>
.
I did google but no solution help. This is my full gradle:
(I also put mavenCentral() on project level gradle ). I can sync the libraries without error, but I can't run the app.
Oh wow I am sorry—I thought 2.2.0 had a fix for #225 (
#225), which is the
issue you experienced, but that fix was merged just after 2.2.0 was
released. That was why I asked you which version you were on. Anyway, I
hope you didn't waste too much time. The next release will have this patch
and you won't have to have this exclude in your build.
Activity
andimarek commentedon Aug 1, 2015
@parallelcross Could you please try the latest development build '2015-08-01T00-17-47'? (How to include this in your project here: https://github.com/andimarek/graphql-java#development-build)
I updated the dependency to antlr 4.5.1, which itself removed the unnecessary dependency to org.abego.treelayout. I hope this will fix your issue.
parallelcross commentedon Aug 1, 2015
Thanks again. It says it can't find the dependency
parallelcross commentedon Aug 1, 2015
I did download the jar from bintray. I don't get the
DexExceptionanymore, but I do get:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/slf4j/LoggerFactory;parallelcross commentedon Aug 1, 2015
I added the slf4j dependency and was able to get past the
NoClassDefFoundError. I now get:andimarek commentedon Aug 1, 2015
There seems to be a typo in your dependencies statement:
dependencies { compile 'com.graphql-java:graphql-java:2015-08-01T00-17-47'` }There is a "backtick character" at the end of the line.
This should give you graphql-java, slf4j and the antlr-runtime jar.
You need all three jar files to run graphql-java. A missing antlr-runtime might explain your last Exception.
parallelcross commentedon Aug 1, 2015
Sorry, that was just me mis-typing the dependency, the back tick wasn't in my build.gradle. I still can't resolve the dependency.
andimarek commentedon Aug 1, 2015
ok .... what error message do you get?
andimarek commentedon Aug 1, 2015
I just realised that you of course also need
mavenCentral()as repository.Do you have
repositories { mavenCentral() }anywhere in your build file?
parallelcross commentedon Aug 1, 2015
That did it. I was able to confirm the the library is working for me now. Thanks.
andimarek commentedon Aug 1, 2015
Cool ... thanks a lot for your feedback. I also updated the README.
I will close this issue. Please open a new one, if you have any other problems/feedback.
IHNEL commentedon Dec 2, 2016
I got the same error although already set mavenCentral()
`Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
If I set
multiDexEnabled true, I got new error message:`Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
dminkovsky commentedon Dec 2, 2016
IHNEL commentedon Dec 2, 2016
I use v2.2.0: compile 'com.graphql-java:graphql-java:2.2.0'
dminkovsky commentedon Dec 2, 2016
IHNEL commentedon Dec 2, 2016
I did google but no solution help. This is my full gradle:
(I also put
mavenCentral()on project level gradle ). I can sync the libraries without error, but I can't run the app.IHNEL commentedon Dec 2, 2016
I fixed this by:
compile('com.graphql-java:graphql-java:2.2.0') { exclude group: 'org.antlr' }dminkovsky commentedon Dec 2, 2016
IHNEL commentedon Dec 2, 2016
Thanks
Im really new on GraphQL, so many new things to learn. You guys did a great job.
dminkovsky commentedon Dec 5, 2016
Thank you!
Ability to generate only model graphql-java#4
gnhf #4: Cached hasIncrementalSupport() result on ExecutionContext to…
gnhf #4: Added identity-based mergeSubSelections cache across sameRes…
gnhf #4: Skipped strategy-level instrumentation parameter allocation …