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.
Instrumentation of Android APK failed
Re: Instrumentation of Android APK failed
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.
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.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Instrumentation of Android APK failed
Hi PsiX,
Unfortunately it is hard to analyze this issue.
May I ask you to provide additional information?
Therefore, please answer these questions:
This will help us to analyze the issue in more detail.
Thank you in advance.
Regards,
Markus (S)
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?
This will help us to analyze the issue in more detail.
Thank you in advance.
Regards,
Markus (S)
Re: Instrumentation of Android APK failed
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.
Our UI is dynamically loaded by another application.
Still working on being able to instrument these dynamically loaded components.