Google 助手 API 正在生成缺少导入的 .proto 文件
Google Assistant API generating .proto file missing import
我遇到错误
google/api/http.proto: File not found
google/protobuf/descriptor.proto: File not found
尝试为 embedded_assistant.proto 生成 .java 文件时。我将 Protobuf Plugin for Gradle 用于 Android。
我在哪里可以找到 descriptor.proto 文件,因为我在 Google API github 页面上找不到它。
Android 缺少的 descriptor.proto 是 protobuf issue 1889。解决方法是添加 protobuf
对完整 protobuf 库的依赖:
dependencies {
protobuf 'com.google.protobuf:protobuf-java:3.4.0'
}
我遇到错误
google/api/http.proto: File not found
google/protobuf/descriptor.proto: File not found
尝试为 embedded_assistant.proto 生成 .java 文件时。我将 Protobuf Plugin for Gradle 用于 Android。
我在哪里可以找到 descriptor.proto 文件,因为我在 Google API github 页面上找不到它。
Android 缺少的 descriptor.proto 是 protobuf issue 1889。解决方法是添加 protobuf
对完整 protobuf 库的依赖:
dependencies {
protobuf 'com.google.protobuf:protobuf-java:3.4.0'
}