mirror of https://github.com/grpc/grpc-java.git
This resolves #5523 While bumping `com.android.tools.build:gradle:3.1.2` to `3.3.0`, some other plugins/artifacts/maven repo/buildscripts have to be updated: - gradle (wrapper) need to upgrade to 4.10.x - protobuf gradle plugin need to bump a version compatible with gradle version. - need add `google()` and `jcenter()` repos for android (otherwise `com.android.tools.build:aapt2:3.3.0x` and `trove4j` will not be found resp.) - need to accept license for Android "build-tools;28.0.3" in kokoro env. |
||
|---|---|---|
| .. | ||
| clientcache | ||
| 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
-
Install gRPC Java library SNAPSHOT locally, including code generation plugin (Only need this step for non-released versions, e.g. master HEAD).
-
Install the app
$ cd helloworld # or "cd routeguide"
$ ../../gradlew installDebug
Please refer to the tutorial on how to use gRPC in Android programs.