mirror of https://github.com/grpc/grpc-java.git
The examples are no longer part of the normal build, although they are built with Travis. The examples now include their own copy of the gradle wrapper to ease usage from IDEs which can now properly detect the correct version of gradle to use. The build files were generated using "gradle init" and "mvn archetype:generate" and then modified following our README. Fixes #1414 |
||
|---|---|---|
| .. | ||
| app | ||
| gradle/wrapper | ||
| .gitignore | ||
| README.md | ||
| build.gradle | ||
| gradlew | ||
| gradlew.bat | ||
| settings.gradle | ||
README.md
gRPC Hello World Tutorial (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
1. Clone the gRPC Java git repo
$ git clone https://github.com/grpc/grpc-java
$ cd grpc-java
2. Install gRPC Java (not necessary for released versions)
$ ./gradlew install -PskipCodegen=true
3. Install the app
$ cd examples/android
$ ./gradlew installDebug