I am creating a jar file where i did right click on project name then export>java>Jar file
and then i checked on export generated class files and resources
by selecting only src folder files and classpath and .project file.
This jar file i tried to use in another android project and i am getting this above
Unable to execute dex: Multiple dex files define com/example/projectname/xyzClass
So i followed this link here and unchecked my jar in order and export of buildpath and if i do so i am getting another error java.lang.NoClassDefFoundError: com.example.xyzClass
I have no idea why i am getting `Unable to execute dex: Multiple dex files define' error.
And here is the screenshot of order and export of my project where i am using my servicedemonew2.jar file.
I would be glad if someone assist me with this why and when do we get this above error.