As a followup, I am kind of curious what your use case is?  

I have created a tracking issue 
here https://github.com/grpc/grpc-java/issues/2273 .  Feel free to ping 
that issue.

On Tuesday, September 13, 2016 at 4:17:38 PM UTC-7, Carl Mastrangelo wrote:
>
> There isn't support for running a Java Server on Android currently.  If 
> you want to do in process communication, we do have support for that.
>
> As for your specific error, it happens because we use a ServiceLoader to 
> find implementations.  We don't have such a file on Android.  You may want 
> to use C++ in your case.
>
> On Wednesday, August 31, 2016 at 4:28:57 PM UTC-7, [email protected] 
> wrote:
>>
>> Is there an example or implementation of GRPC server (Java/C++) running 
>> on Android?
>> I am following grpc java server example to implement the server i
>>
>> private class GrpcServerTask extends AsyncTask<Void, Void, String>{
>>
>>     @Override
>>     protected void onPreExecute() {
>>     }
>>     @Override
>>     protected String doInBackground(Void... params) {
>>         int port = 50051;
>>         Server server;
>>         try {
>>             server = ServerBuilder.forPort(port)
>>                     .addService(new GreeterImpl())
>>                     .build()
>>                     .start();
>>         } catch (Exception e) {
>>             e.printStackTrace();
>>         }
>>         return null;
>>     }
>> }
>>
>> private class GreeterImpl extends GreeterGrpc.GreeterImplBase {
>>
>>     @Override
>>     public void sayHello(HelloRequest req, StreamObserver<HelloReply> 
>> responseObserver) {
>>         HelloReply reply = HelloReply.newBuilder().setMessage("Hello " + 
>> req.getName()).build();
>>         responseObserver.onNext(reply);
>>         responseObserver.onCompleted();
>>     }
>> }
>>
>> I keep getting the error 
>> *io.grpc.ManagedChannelProvider$ProviderNotFoundException: 
>> No functional server found. Try adding a dependency on the grpc-netty 
>> artifact*
>> on executing* new GrpcServerTask().execute();*
>>
>> Thanks,
>> Anil
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/ad734cc6-e23a-4092-a72d-4c0679099e69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to