How to import XmlAccessorType in android… here is a solution to the problem.
How to import XmlAccessorType in android
I’m trying to get code using this import from java to android (using android studio):
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
But it does not recognize this.
Does anyone know how to import this in Android studio?
Solution
You need to add jaxb-api-x.x.x .jar
to your android project classpath.
Try this link for jar