2016-04-07 87 views
1

我从这个目录得到源码link但它抛出这个错误。我已经从github或git获得了许多源代码,但大部分没有得到任何错误。但这一次它不是用不同的技巧来解决的。任何帮助将不胜感激导入项目抛出错误

Error:Execution failed for task ':generateDebugProto'. 
 
> protoc: stdout: . stderr: D:\2BVPRO'S\launcher3\launcher3\src\main\proto: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\build\extracted-protos\main: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\build\extracted-include-protos\main: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\src\debug\proto: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\build\extracted-protos\debug: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\build\extracted-include-protos\debug: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\src\debug\proto: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\build\extracted-protos\debug: warning: directory does not exist. 
 
D:\2BVPRO'S\launcher3\launcher3\build\extracted-include-protos\debug: warning: directory does not exist. 
 
backup.proto:21:8: Option "javanano_use_deprecated_package" unknown.

回答

0

在Launcher3/protos中是一个名为backup.proto的文件。在文件中:

package launcher_backup; 

//option javanano_use_deprecated_package = true; >>> remark this line out. 
option java_package = "com.android.launcher3.backup"; 
option java_outer_classname = "BackupProtos"; 

我能够编译这个。显然,这不再是协议缓冲区的更高版本。我不知道副作用,但我能够编译,安装和使用没有问题。

请参阅https://github.com/google/protobuf/releases