Saya mencoba menjalankan contoh dari https://github.com/grpc/grpc/tree/master/examples/android/helloworld.
Saya memeriksa bahwa saya memiliki:
Android SDK Android NDK protoc grpc_cpp_plugin
Saya juga telah menjalankan git submodule update --init di repositori untuk mengunduh semua dependensi.
Ketika saya menjalankan /gradlew installDebug --stacktrace
Saya mendapatkan kesalahan ini:
Error while executing process
/Users/myuser/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/..path../exampleAndroidUsingCPP/grpc/examples/android/helloworld/app/.externalNativeBuild/cmake/debug/x86 --target protoc}
[1/98] Generating ../../../../../../../../../../../../third_party/protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc
FAILED: cd /Users/..path../exampleAndroidUsingCPP/grpc/examples/android/helloworld/app/.externalNativeBuild/cmake/debug/grpc/outputs/x86/third_party/protobuf && js_embed /Users/..path../exampleAndroidUsingCPP/grpc/third_party/protobuf/src/google/protobuf/compiler/js/well_known_types/any.js /Users/..path../exampleAndroidUsingCPP/grpc/third_party/pr tobuf/src/google/protobuf/compiler/js/well_known_types/struct.js /Users/..path../exampleAndroidUsingCPP/grpc/third_party/protobuf/src/google/protobuf/compiler/js/well_known_types/timestamp.js > /Users/..path../exampleAndroidUsingCPP/grpc/third_party/protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc
/bin/sh: js_embed: command not found
ninja: build stopped: subcommand failed.
Saya menjalankan ini di OSX
Adakah yang tahu di mana saya bisa memperbaikinya?
Terima kasih