Page 1 of 1

Unable to Instrument the Android App

Posted: Fri Feb 01, 2019 9:00 am
by Subhadip
Hello Everyone,

I am trying to instrument an android app, and getting an error.
Can someone help on this?

USing Ranorex Studio : 8.3.2, RxService App 2.0.3.

Let me know if you need more details.

Error:

System.IO.FileNotFoundException: Could not find file 'C:\Users\subhadipg\AppData\Local\RanorexStudio8\RxEnv\Android\temp\decomp\AndroidManifest.xml'.
File name: 'C:\Users\subhadipg\AppData\Local\RanorexStudio8\RxEnv\Android\temp\decomp\AndroidManifest.xml'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Threading.CompressedStack.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.ProcessManifest(String manifestPath, DecompileInfo& dcInfo, InstrumentApkOptions instrumentOptions)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.DecompileApkFile(String apkFilePath, Boolean showProcessWindows, IPathService pathService, InstrumentApkOptions deployOptions)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.Instrument(String apkFilePath, InstrumentApkOptions deployOptions, BackgroundWorker bgw)
at Ranorex.Plugin.Mobile.RxIntegration.Instrumentation.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)

Thank you,
Subhadip

Re: Unable to Instrument the Android App

Posted: Mon Feb 04, 2019 9:30 am
by odklizec
Hi,

At first, try to delete entire folder and try it again:
C:\Users\subhadipg\AppData\Local\RanorexStudio8\RxEnv\Android\temp\decomp\
Also, please make sure you have enough rights, ideally, start Ranorex as Administrator.

Re: Unable to Instrument the Android App

Posted: Thu Feb 07, 2019 9:37 am
by Subhadip
Thank you,issue was solved by using another APK. looks like had some issues with APK