mirror of https://github.com/grpc/grpc-java.git
Guava 20 introduced some overloading optimizations for Preconditions that require using Guava 20+ at runtime. Unfortunately, Guava 20 removes some things that is causing incompatibilities with other libraries, like Cassandra. While the incompatibility did trigger some of those libraries to improve compatibility for newer Guavas, we'd like to give the community more time to work through it. See #2688 At this commit, we appear to be compatible with Guava 18+. It's not clear if we want to actually "support" 18, but it did compile. Guava 17 doesn't have at least MoreObjects, directExecutor, and firstNotNull. Guava 21 compiles without warnings, so it should be compatible with Guava 22 when it is released. One test method will fail with the upcoming Guava 22, but this won't impact applications. I made MoreThrowables to avoid using any known-deprecated Guava methods in our JARs, to reduce pain for those stuck with old versions of gRPC in the future (July 2018). In the stand-alone Android apps I removed unnecessary explicit deps instead of syncing the version used. |
||
|---|---|---|
| .. | ||
| helloworld | ||
| routeguide | ||
| README.md | ||
README.md
gRPC Hello World Example (Android Java)
PREREQUISITES
-
Android Tutorial if you're new to Android development
-
We only have Android gRPC client in this example. Please follow examples in other languages to build and run a gRPC server.
INSTALL
- (Only for non-released versions) Install gRPC Java
$ cd ../..
$ ./gradlew install -PskipCodegen=true
$ cd examples/android
- Install the app
$ cd helloworld # or "cd routeguide"
$ ./gradlew installDebug
Please refer to the tutorial on how to use gRPC in Android programs.