https://kotlinlang.org logo
#android
Title
# android
r

Remon Shehata

05/21/2020, 5:55 PM
how can I import data from excel to POJO in my app?
google 2
stackoverflow 3
m

Mario Ruiz

05/21/2020, 6:14 PM
Apache POI and pray to your gods.
👍 2
r

Remon Shehata

05/21/2020, 6:41 PM
I tried to use it but . i used `implementation 'org.apache.poipoi ooxml3.11-beta2'`I got this error
Duplicate class org.apache.xmlbeans.xml.stream.Location found in modules jetified-xmlbeans-2.6.0.jar (org.apache.xmlbeans:xmlbeans:2.6.0) and jetified-xmlbeans-2.6.0.jar (org.apache.xmlbeans:xmlbeans:2.6.0)
Duplicate class org.apache.xmlbeans.xml.stream.ReferenceResolver found in modules jetified-xmlbeans-2.6.0.jar (org.apache.xmlbeansxmlbeans2.6.0) and jetified-xmlbeans-2.6.0.jar (org.apache.xmlbeansxmlbeans2.6.0) Duplicate class org.apache.xmlbeans.xml.stream.XMLEvent found in modules jetified-xmlbeans-2.6.0.jar (org.apache.xmlbeansxmlbeans2.6.0) and jetified-xmlbeans-2.6.0.jar (org.apache.xmlbeansxmlbeans2.6.0)
any idea what to do?
m

Mario Ruiz

05/21/2020, 6:54 PM
exclude the dependency in gradle
👍 1
r

Remon Shehata

05/21/2020, 7:00 PM
I've never done that before.. I will try to google it. thanks bro
45 Views