[BinderTransport] Add more info to class not found error msg (#28009)

pull/27989/head
Ming-Chuan 3 years ago committed by GitHub
parent 4ab1608ee0
commit 38340ed694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/core/ext/transport/binder/client/jni_utils.cc

@ -46,7 +46,10 @@ jclass FindNativeConnectionHelper(JNIEnv* env) {
gpr_log(GPR_ERROR,
"Cannot find binder transport Java helper class. Did you invoke "
"grpc::experimental::InitializeBinderChannelJavaClass correctly "
"beforehand?");
"beforehand? Did the APK correctly include the connection helper "
"class (i.e depends on build target "
"src/core/ext/transport/binder/java/io/grpc/binder/"
"cpp:connection_helper) ?");
// TODO(mingcl): Maybe it is worth to try again so the failure can be fixed
// by invoking this function again at a different thread.
return nullptr;

Loading…
Cancel
Save