Instrumentation of Android APK failed

Ask general questions here.
PsiX
Posts: 3
Joined: Tue Nov 18, 2014 3:09 pm

Instrumentation of Android APK failed

Post by PsiX » Tue Nov 18, 2014 3:12 pm

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.

PsiX
Posts: 3
Joined: Tue Nov 18, 2014 3:09 pm

Re: Instrumentation of Android APK failed

Post by PsiX » Thu Nov 20, 2014 12:45 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Instrumentation of Android APK failed

Post by Support Team » Fri Nov 21, 2014 4:36 pm

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)

PsiX
Posts: 3
Joined: Tue Nov 18, 2014 3:09 pm

Re: Instrumentation of Android APK failed

Post by PsiX » Wed Nov 26, 2014 8:30 am

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.