在网站http://mvnrepository.com/artifact/com.google.protobuf/protobuf-java/3.4.0下载Jar包,在网站https://github.com/google/protobuf/releases下载工具,选择windows版本,
解压protoc-3.4.0-win32.zip并设置环境变量,在系统变量Path中添加protoc.exe所在路径(D:\软件\protoc-3.4.0-win32\bin),在命令窗口运行protoc.exe –version
出现如上提示表示可以使用。新建文本文件并改名为M