This is in continuation to my previous question: Getting compile error: package com.twilio.sdk does not exist
I got to resolve the complie error and now trying to run the uiautomator
test on an android device. However, I am getting java.lang.ClassNotFoundException
as the android device would not have Twilio API
jars/classes.
So, I searched for solutions where I could build my final jar with Twilio API jar or the classes within that. I came across 'jar-jar
' and 'one-jar
' approaches to do so but did not work. I may be doing something wrong here. I'd really appreciate if someone could give a sample how to use any of these approaches.
I also found couple of other suggestions to do it via 'build.xml
' such as adding the following line to the '-jar
' task:
<zipgroupfileset dir="${jar.libs.dir}" includes="*.jar"/>
The above approached did include the Twilio classes to my final jar (my final jar size got increased by the size of the Twilio jar), however, my final jar could not persist the directory strucure for the Twilio classes within it. My final jar had all the classes at the root directory and all the folders were blank.
So, I am not aware of any more approaches to resolve this. If anyone of you have any suggestions/idea, please share.
Regards,
Rumit