mirror of https://github.com/grpc/grpc-java.git
Fixes #2207. This is actually a workaround. Ideally users shouldn't need to -keep classes, but it's a bit risky to fix the real issue before 1.1. The further fix will be done as part of #2633. The interop app's build.gradle change is necessary to compile with newer Gradle versions. The com.google.errorprone.annotations was necessary in order to prevent annotation warnings from failing the build. |
||
|---|---|---|
| .. | ||
| 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.