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 这个错误
warning:directorydoesnotexist
应该是文件不存在,你可以区相关路径下查看是否存在。
如果你在studio中buildgoogle的launcher应该需要一个framework的jar,不然你可能build不通过。
或者你可以直接使用gradlebuild下看看能否build成功
注释掉这行
backup.proto:21:8:Option"javanano_use_deprecated_package"unknown.
楼主解决了吗?我也是这个问题
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。