Update README.md

This commit is contained in:
Xiao Hang 2015-02-25 21:02:07 -08:00
parent b8942be562
commit df0cb12311
1 changed files with 6 additions and 6 deletions

View File

@ -15,26 +15,26 @@ PREREQUISITES
INSTALL INSTALL
------- -------
1. Clone the gRPC Java git repo 1 Clone the gRPC Java git repo
```sh ```sh
$ git clone https://github.com/grpc/grpc-java $ git clone https://github.com/grpc/grpc-java
``` ```
2. Install gRPC Java, as described in [How to Build](https://github.com/grpc/grpc-java#how-to-build) 2 Install gRPC Java, as described in [How to Build](https://github.com/grpc/grpc-java#how-to-build)
```sh ```sh
$ # from this dir $ # from this dir
$ cd grpc-java $ cd grpc-java
$ # follow the instructions in 'How to Build' $ # follow the instructions in 'How to Build'
``` ```
3. [Create an Android project](https://developer.android.com/training/basics/firstapp/creating-project.html) under your working directory. 3 [Create an Android project](https://developer.android.com/training/basics/firstapp/creating-project.html) under your working directory.
- Set Application name to "Helloworld Example" and set Company Domain to "grpc.io". Make sure your package name is "io.grpc.helloworldexample" - Set Application name to "Helloworld Example" and set Company Domain to "grpc.io". Make sure your package name is "io.grpc.helloworldexample"
- Choose appropriate minimum SDK - Choose appropriate minimum SDK
- Use Blank Activity - Use Blank Activity
- Set Activity Name to HelloworldActivity - Set Activity Name to HelloworldActivity
- Set Layout Name to activity_helloworld - Set Layout Name to activity_helloworld
4. Prepare the app 4 Prepare the app
- Clone this git repo - Clone this git repo
```sh ```sh
$ git clone https://github.com/grpc/grpc-common $ git clone https://github.com/grpc/grpc-common
@ -48,7 +48,7 @@ $ git clone https://github.com/grpc/grpc-common
``` ```
added outside your appplication tag added outside your appplication tag
5. Add dependencies. gRPC Java on Android depends on grpc-java, protobuf nano, okhttp 5 Add dependencies. gRPC Java on Android depends on grpc-java, protobuf nano, okhttp
- Copy grpc-java .jar files to your_app_dir/app/libs/: - Copy grpc-java .jar files to your_app_dir/app/libs/:
- grpc-java/core/build/libs/*.jar - grpc-java/core/build/libs/*.jar
- grpc-java/stub/build/libs/*.jar - grpc-java/stub/build/libs/*.jar
@ -68,4 +68,4 @@ dependencies {
} }
``` ```
6. [Run your example app](https://developer.android.com/training/basics/firstapp/running-app.html) 6 [Run your example app](https://developer.android.com/training/basics/firstapp/running-app.html)