错误
> protoc: stdout: . stderr: C:\Users\Administrator\Desktop\Launcher3\Launcher3\src\main\proto: warning: directory does not exist.\build\extracted-protos\main: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\build\extracted-include-protos\main: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\src\debug\proto: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\build\extracted-protos\debug: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\build\extracted-include-protos\debug: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\src\debug\proto: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\build\extracted-protos\debug: warning: directory does not exist.
  C:\Users\Administrator\Desktop\Launcher3\Launcher3\build\extracted-include-protos\debug: warning: directory does not exist.

  Missing output directives.

解决方法:

Android 编译launcher3

//protobuf {
//    // Configure the protoc executable
//    protoc {
//        artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
//    }
//}
protobuf {
    protoc {
        artifact = "com.google.protobuf:protoc:3.0.0"
    }
    plugins {
        lite {
            artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0"
        }
    }
    generateProtoTasks {
        all().each { task ->
            task.builtins {
                remove java
            }
            task.plugins {
                lite { }
            }
        }
    }
}

相关文章:

  • 2021-12-16
  • 2021-12-09
  • 2021-09-24
  • 2022-01-25
  • 2022-01-20
  • 2022-02-28
  • 2022-12-23
猜你喜欢
  • 2021-07-08
  • 2021-11-27
  • 2021-09-03
  • 2021-11-25
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案