How build Android helloworld demo project

32 views
Skip to first unread message

ehu.pg...@gmail.com

unread,
Dec 15, 2017, 8:19:18 AM12/15/17
to grpc.io
Hi,

I'm trying to do my first tests with grpc.

I downloaded android simple demo helloworld client project from here, I not modify code:


https://github.com/grpc/grpc-java/tree/master/examples/android/helloworld


When building the gradle I get error:


Error:(58, 13) Failed to resolve: io.grpc:grpc-protobuf-lite:1.8.1-SNAPSHOT
Error:(57, 13) Failed to resolve: io.grpc:grpc-okhttp:1.8.1-SNAPSHOT
Error:(59, 13) Failed to resolve: io.grpc:grpc-stub:1.8.1-SNAPSHOT


Gradle:


https://github.com/grpc/grpc-java/blob/master/examples/android/helloworld/app/build.gradle


I'm not clear if I have to do some more steps to make it work. I thought that the gradle when you put 'compile' the libraries are downloaded from the repositories automatically.


I don´t know what means in Gradle "You need to build grpc-java to obtain these libraries below."?


I have a windows machine and Android studio and I have not installed any grpc libraries in it, do I have to download and install something?


Forgive me if the question is very obvious


Thanks!



Eric Anderson

unread,
Dec 15, 2017, 10:29:26 AM12/15/17
to ehu.pg...@gmail.com, grpc.io
I've answered your stackoverflow question.

You need to do a `git checkout v1.8.0`. A PR is out to fix the documentation.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/a82d9275-5198-4e9c-b230-6229bf18fac3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages