有人可以在Android上显示为Google Speech v1beta1 gRPC API执行身份验证的示例吗?

我正在尝试在https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/speech中运行示例代码 .

它在OSX和Eclipse中运行良好;当我尝试Android时,我会得到不同的结果 .

具体来说,在部分中:

private ManagedChannel createChannel(String host, int port) throws IOException     {
    try {
        ...
        GoogleCredentials creds = ...
        creds = creds.createScoped(OAUTH2_SCOPES);

        ManagedChannel channel =
                ManagedChannelBuilder.forAddress(host, port)
                        .intercept(new ClientAuthInterceptor(creds, Executors.newSingleThreadExecutor()))
                        .build();

我得到了不推荐使用ClientAuthInterceptor的抱怨,并且在 io.grpc.auth 的javadoc中它显示"use GoogleAuthLibraryCallCredentials instead",它出现的是https://github.com/grpc/grpc-java:使用它的任何成功示例?

在OSX / Eclipse中,我正在使用示例代码“按原样”在Android上我正在从文件中读取JSON Google凭据,尽管返回的凭据看起来很相似 .

谢谢!