我从这个目录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 :(得分:0)
我遇到了同样的问题。我尝试创建路径但是当我尝试构建时它被擦除了。
我最终从https://f-droid.org/wiki/page/com.android.launcher3获取了源代码。他们还注意到由于protos强制删除备份而导致构建失败的尝试。来源可以直接从https://f-droid.org/repo/com.android.launcher3_1_src.tar.gz
下载答案 1 :(得分: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";
我能够编译它。显然,这不再是协议缓冲区的更高版本。我不知道副作用,但我能够编译,安装和使用没有问题。