Page 1 of 1

Instrumentation failed - Instrumentation Wizard

Posted: Fri Nov 21, 2014 10:29 am
by kgasimov
I would like to start a little test with Ranorex 5.2. Unfortunately I can not start because Instrumentation failed.
For entirely information:
The “apktool.jar” and “apktool.bat” files are available in the next map: C:\Program Files (x86)\Ranorex 5.2\Bin\RxEnv\Android\tools\apkTool\
Also I'm running the Instrumentation Wizard with Administrator privileges.

For more information see attached print screen.

Thank you very much for help.

Best Regards,
Kamal Gasimov

Re: Instrumentation failed - Instrumentation Wizard

Posted: Mon Nov 24, 2014 9:18 am
by Support Team
Hello Kamal,

Unfortunately, it seems like attaching your error log didn't work. May I ask you to upload the file again?

Thanks,
Robert

Re: Instrumentation failed - Instrumentation Wizard

Posted: Mon Nov 24, 2014 10:03 am
by kgasimov
Support Team wrote:Hello Kamal,

Unfortunately, it seems like attaching your error log didn't work. May I ask you to upload the file again?

Thanks,
Robert
Hello Robert,

This is a error log:

'System.Exception: Failed to recompile the instrumented code. See details for more information: Exception in thread "main" java.nio.file.FileSystemNotFoundException: C:\Users\kgasimov\AppData\Local\RanorexStudio5\RxEnv\Android\temp\File name_v8.1%5B2%5D.instrumented.apk
at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:120)
at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:117)
at java.nio.file.FileSystems.newFileSystem(Unknown Source)
at java.nio.file.FileSystems.newFileSystem(Unknown Source)
at brut.androlib.Androlib.insertFolder(Androlib.java:599)
at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:566)
at brut.androlib.Androlib.build(Androlib.java:294)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)

at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.CompileApkFile(String sourceApkFilePath, IPathService pathService)
at Ranorex.Plugin.Mobile.Utils.BackgroundWorkerSupported.ExecuteBgwCode[TArg0,TArg1](BgwDelegate`2 methodDelegate, Int32 doneProgress, String progressText, TArg0 arg0, TArg1 arg1, BackgroundWorker bgw)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.Instrument(String apkFilePath, Int32 port, InstrumentApkOptions deployOptions, BackgroundWorker bgw)
at Ranorex.Controls.Instrumentation.Workers.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)"

Re: Instrumentation failed - Instrumentation Wizard

Posted: Tue Nov 25, 2014 8:49 am
by Support Team
Hello kgasimov,

Thank you for providing the error log.

Is it possible for you to provide the APK file of your app as well? If yes, please send it to [email protected].

This would really help us in analyzing your issue in more detail.

Regards,
Robert

Re: Instrumentation failed - Instrumentation Wizard

Posted: Wed Nov 26, 2014 10:42 am
by kgasimov
Hello Robert,

Unfortunately I can/may not send *.apk file. Because there sensitive business information.
I would like to know, I have to do something special with *.apk file. Because, it still runs on a tablet where OS is Android.

Regards,
Kamal

Re: Instrumentation failed - Instrumentation Wizard

Posted: Thu Nov 27, 2014 10:21 am
by Support Team
Hello kgasimov,

Maybe the name of your APK-file is causing the issue. Please rename the APK file to "Test.apk" before instrumenting it.

Regards,
Robert

Re: Instrumentation failed - Instrumentation Wizard

Posted: Wed Dec 03, 2014 8:55 am
by kgasimov
Hello Robert,

Unfortunately, the changing of filename is not solution of issue. I have just same problem with compile.

Support Team wrote:Hello kgasimov,

Maybe the name of your APK-file is causing the issue. Please rename the APK file to "Test.apk" before instrumenting it.

Regards,
Robert

Re: Instrumentation failed - Instrumentation Wizard

Posted: Thu Dec 04, 2014 10:24 am
by Support Team
Hello kgasimov,

That's a pity.

I’m afraid that we can’t analyze the issue in more detail without the APK file. That aside, you could update to our latest version 5.2.1 and check whether it’s working.

Thank you for your understanding.

Regards,
Robert