准备工作
首先要保证电脑环境(手机恐怕不行)安装了基本的jdk(8+),idea(任意版本),maven(3.6.3),gradle(6.5),git(2.27.0)等。如果没有请先百度安装配置,磨刀不误砍柴工。
接下来的工作
尽可能按照官网说明来搞,官方文档 。不要自己直接git clone https://github.com/grpc/grpc-java
down到本地之后就开始干上了。
愚蠢的我就是直接git clone ,错误步骤如下:
$ git clone https://github.com/grpc/grpc-java
$ cd grpc-java/examples
$ ./gradlew installDist
结果一直报错 :
D:\Work\Learn\java\grpc-java\examples>gradlew installDist
> Task :extractIncludeProto FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':extractIncludeProto'.
> Could not resolve all files for configuration ':compileProt