Page 1 of 1

Instrumentation of Android APK failed

Posted: Tue Nov 18, 2014 3:12 pm
by PsiX
I'm trying to record a macro for my apk. During instrumentation I get a
NullReferenceException in ResolveInheritanceDependencies.

I'm trying to deploy to an emulator.

What can I do?

I can provide the apk if necessary.

Re: Instrumentation of Android APK failed

Posted: Thu Nov 20, 2014 12:45 pm
by PsiX
This is the actual error message:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.ResolveInheritanceDependencies(DecompileInfo dcInfo, IPathService pathService)
bei Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.InstrumentCode(DecompileInfo dcInfo, Int32 port, IPathService pathService)
bei Ranorex.Plugin.Mobile.Utils.BackgroundWorkerSupported.ExecuteBgwCode[TArg0,TArg1,TArg2](BgwDelegate`3 methodDelegate, Int32 doneProgress, String progressText, TArg0 arg0, TArg1 arg1, TArg2 arg2, BackgroundWorker bgw)
bei Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.Instrument(String apkFilePath, Int32 port, InstrumentApkOptions deployOptions, BackgroundWorker bgw)
bei Ranorex.Controls.Instrumentation.Workers.AndroidWorker.Run()
bei Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)

We are currently evaluating Ranorex for our purposes. This is currently a blocker for this tool for us.

Re: Instrumentation of Android APK failed

Posted: Fri Nov 21, 2014 4:36 pm
by Support Team
Hi PsiX,

Unfortunately it is hard to analyze this issue.
May I ask you to provide additional information?
Therefore, please answer these questions:
  • Which version of Ranorex are you currently using?
  • Does this problem also occur with other apk-files?
  • Is it possible for you to send us your application?
*If you don't want to post your application in this public forum, you can send it to [email protected]

This will help us to analyze the issue in more detail.
Thank you in advance.

Regards,
Markus (S)

Re: Instrumentation of Android APK failed

Posted: Wed Nov 26, 2014 8:30 am
by PsiX
So the answer is, the apk had no UI which can be actually run.
Our UI is dynamically loaded by another application.
Still working on being able to instrument these dynamically loaded components.