gRPC on Android

Note: Building the protobuf dependency for Android requires This fix will be in the next protobuf release, but until then must be manually patched in to third_party/protobuf to build gRPC for Android.


  • Android SDK
  • Android NDK
  • protoc and grpc_cpp_plugin binaries on the host system


The example application can be built via Android Studio or on the command line using gradle:

$ ./gradlew installDebug


The instrumentation tests can be run via the following gradle command. This requires an emulator already running on your computer.

$ ./gradlew connectedAndroidTest \ \
  -Pandroid.testInstrumentationRunnerArguments.server_port=443 \