2016-04-07 107 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