I am currently developing chat app in android and I am trying to register the phone to the openfire server
using the REST API provided by openfire plugin. Now my problem is I’m getting an error about this one
10-17 15:57:02.772 28847-30207/com.example.austin.weconnect E/iterInterceptorExecutor: MessageBodyWriter not found for media type=application/xml, type=class org.igniterealtime.restclient.entity.UserEntity, genericType=class org.igniterealtime.restclient.entity.UserEntity.
and then I figured out that the UserEntity class should be use as a class to be the xml element and this java file doesn’t support the jaxb
All this import is not recognized by android studio
and Also I am getting an ProcessingException when I am using the
Response resp = restApiClient.createUser(userEntity);
How do I handle and why I get this error?
I tried to put the jaxb plugin in gradle but it didn’t solve the problem because android and java plugin is not suitable for this.
I hope you can help me. Thank you!