Intent intent = new Intent(); intent.setComponent(new ComponentName("com.test.aidl","com.test.aidl.IRemoteService")); bindService(intent, conn, Context.BIND_AUTO_CREATE);
绑定了服务之后,ServiceConnection的onServiceConnected方法未回调
看一下包名和接口的路径名是否一样
先运行服务端demo