Page 1 of 1

Instrumentation Error in .apk file

Posted: Fri Dec 13, 2019 10:52 am
by rocky.egr
Hello,

I am facing instrumentation error due to incorrect advanced settings. I have tried to go through some of the relevant threads which indicated me to add few flags to other instrumentation flags but it didnt help. I tried adding -static -multidex -nores -smali_redist in the relevant field but without any luck. Further more I tried changing the value of the flags to TRUE (for multidex flags and redistribute smali) but it did not help either. Can someone please help me in instrumenting the apk file. This is a showstopper for me as I am unable to proceed with automation of mobile app in android phone.

I have attached the complete exception log file with this thread. This might help you to decode the problem. Do let me know if you need any further details/information pertaining to this issue.

Thanks

Re: Instrumentation Error in .apk file

Posted: Fri Dec 13, 2019 11:09 am
by qwertzu
Hi Rocky,

The exception in the attached error just shows, that your app uses multiple dex files.
I know, you've already tried using the "multidex" flag, but it would be helpful if you send us the error message you receive in this case.
So, please instrument with only the multidex flag and send us the error message you receive.
Then we can give further hints.

regards, qwertzu

Re: Instrumentation Error in .apk file

Posted: Fri Dec 13, 2019 11:16 am
by rocky.egr
Thanks.

I tried it enabling only the multidex flag option as you had mentioned. Also I have attached the snapshot of the instrumentation settings. Please let me know if I have to try something else.

Re: Instrumentation Error in .apk file

Posted: Fri Dec 13, 2019 12:02 pm
by odklizec
Hi,

At first, you don't have to add -multidex flag, since the Mutlidex application option is already enabled.

At next, I think this kind of issue cannot be solved via forum and you have to contact Ranorex support...
https://www.ranorex.com/support-query/
To be able to analyze the problem, they will need to see the APK.

Also, are you sure the APK comply with instrumentation requirements? And what version of Ranorex do you use (most recent is 9.2.1)? If you are using something older, please update Ranorex and try to reproduce your problem.

Re: Instrumentation Error in .apk file

Posted: Fri Dec 13, 2019 12:12 pm
by rocky.egr
Thanks.

I tried using only with the multidex option enabled but it didnt help too. I am using the 9.2.0 version of Ranorex.
Ok, I will connect with support to get it resolved.