google 原生 launcher3 Android studio 编译错误

· dzwillpower · Created at · Last by kkmmi68 Replied at · 3685 hits
96

clone google 最新的launcher3 Android studio编译报错
Execution failed for task ':generateDebugProto'.

protoc: stdout: . stderr: F:\gitoschina\Launcher3\src\main\proto: warning: directory does not exist.
F:\gitoschina\Launcher3\build\extracted-protos\main: warning: directory does not exist.
F:\gitoschina\Launcher3\build\extracted-include-protos\main: warning: directory does not exist.
F:\gitoschina\Launcher3\src\debug\proto: warning: directory does not exist.
F:\gitoschina\Launcher3\build\extracted-protos\debug: warning: directory does not exist.
F:\gitoschina\Launcher3\build\extracted-include-protos\debug: warning: directory does not exist.
F:\gitoschina\Launcher3\src\debug\proto: warning: directory does not exist.
F:\gitoschina\Launcher3\build\extracted-protos\debug: warning: directory does not exist.
F:\gitoschina\Launcher3\build\extracted-include-protos\debug: warning: directory does not exist.
backup.proto:21:8: Option "javanano_use_deprecated_package" unknown.

at com.google.protobuf.gradle.GenerateProtoTask.compile(GenerateProtoTask.groovy:346)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
这个要怎么解决呢?
就是http://stackoverflow.com/questions/37934975/android-launcher3-build-fails 这个错误

共收到 6 条回复
96

楼主最后解决了吗,我用最新的也遇到问题了。
Error:Execution failed for task ':generateDebugProto'.

protoc: stdout: . stderr: /Users/dimple/AndroidStudioProjects/Launcher3-master/src/main/proto: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/build/extracted-protos/main: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/build/extracted-include-protos/main: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/src/debug/proto: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/build/extracted-protos/debug: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/build/extracted-include-protos/debug: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/src/debug/proto: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/build/extracted-protos/debug: warning: directory does not exist.
/Users/dimple/AndroidStudioProjects/Launcher3-master/build/extracted-include-protos/debug: warning: directory does not exist.
Missing output directives.

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up