Instrumentation failed - Instrumentation Wizard

Ranorex Studio, Spy, Recorder, and Driver.
kgasimov
Posts: 16
Joined: Fri Nov 21, 2014 9:55 am

Instrumentation failed - Instrumentation Wizard

Post by kgasimov » Fri Nov 21, 2014 10:29 am

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
You do not have the required permissions to view the files attached to this post.
Last edited by kgasimov on Mon Nov 24, 2014 9:38 am, edited 1 time in total.

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 failed - Instrumentation Wizard

Post by Support Team » Mon Nov 24, 2014 9:18 am

Hello Kamal,

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

Thanks,
Robert

kgasimov
Posts: 16
Joined: Fri Nov 21, 2014 9:55 am

Re: Instrumentation failed - Instrumentation Wizard

Post by kgasimov » Mon Nov 24, 2014 10:03 am

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)"

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 failed - Instrumentation Wizard

Post by Support Team » Tue Nov 25, 2014 8:49 am

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

kgasimov
Posts: 16
Joined: Fri Nov 21, 2014 9:55 am

Re: Instrumentation failed - Instrumentation Wizard

Post by kgasimov » Wed Nov 26, 2014 10:42 am

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

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 failed - Instrumentation Wizard

Post by Support Team » Thu Nov 27, 2014 10:21 am

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

kgasimov
Posts: 16
Joined: Fri Nov 21, 2014 9:55 am

Re: Instrumentation failed - Instrumentation Wizard

Post by kgasimov » Wed Dec 03, 2014 8:55 am

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

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 failed - Instrumentation Wizard

Post by Support Team » Thu Dec 04, 2014 10:24 am

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