Hi, I am using below command to deploy android application using command line.
Ranorex.Instrumentation.exe /p:android /device:"Nexus 6" /apkfile:"C:\devl\SDK Search_v1.3.0_apkpure.com.apk"
throwing me below error
Error:
Device 'Nexus 6' couldn't be found. Please use the devices dialog to configure your devices.
Android command line deployment error
-
- Posts: 30
- Joined: Wed Aug 14, 2019 8:59 pm
Android command line deployment error
Last edited by priyank1989 on Tue Oct 01, 2019 8:31 pm, edited 1 time in total.
Re: Android command line deployment error
Hi,
Have you tried to instrument and deploy APK, using instrumentation wizard? Just to test, if the instrumentation/deployment works at all. If not, then there is most probably a problem with phone connection. Are you sure there is installed proper USB driver on instrumentation machine?
Have you tried to instrument and deploy APK, using instrumentation wizard? Just to test, if the instrumentation/deployment works at all. If not, then there is most probably a problem with phone connection. Are you sure there is installed proper USB driver on instrumentation machine?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 30
- Joined: Wed Aug 14, 2019 8:59 pm
Re: Android command line deployment error
yes, I tried instrument and deploy APK, using instrumentation wizard and it is working fine for me, I gone through some steps or workaround about apktool.jar but I didn't find any of the file on given url to replace.
Re: Android command line deployment error
If you manually updated the apktool.jar file, make sure you updated it in all locations. The CLI Ranorex.Instrumentation.exe uses apktool.jar from C:\Program Files (x86)\Ranorex\Studio\Bin\Runtime\RxEnv\Android\Tools\apkTool, while the Wizard (Ranorex.InstrumentationWizard.exe) uses it from C:\Program Files (x86)\Ranorex\Studio\Bin\RxEnv\Android\Tools\apkTool.
-
- Posts: 30
- Joined: Wed Aug 14, 2019 8:59 pm
Re: Android command line deployment error
can you please pass me link from where I can get that apktool.jar and detailed correct steps for workaround of intrument and deploy using command line .
As the link which I follow which don't have apktool.jar and stpes are confusing .
I follow this link
https://www.ranorex.com/forum/instrumen ... 14214.html
As the link which I follow which don't have apktool.jar and stpes are confusing .
I follow this link
https://www.ranorex.com/forum/instrumen ... 14214.html
Re: Android command line deployment error
That APK tool workaround was included in Ranorex 9.1.2 (release notes). Download 9.1.2 here, install it, and see if it resolves your issue.
-
- Posts: 30
- Joined: Wed Aug 14, 2019 8:59 pm
Re: Android command line deployment error
I install 9.1.2, but still facing same issue Device nor found
C:\Program Files (x86)\Ranorex\Studio\Bin>Ranorex.Instrumentation.exe /p:"android" /d:"Nexus 6" /a:"C:\devl\SDK Search_v1.3.0_apkpure.com.apk"
Error:
Device 'Nexus 6' couldn't be found. Please use the devices dialog to configure your devices.
C:\Program Files (x86)\Ranorex\Studio\Bin>Ranorex.Instrumentation.exe /p:"android" /d:"Nexus 6" /a:"C:\devl\SDK Search_v1.3.0_apkpure.com.apk"
Error:
Device 'Nexus 6' couldn't be found. Please use the devices dialog to configure your devices.
-
- Posts: 30
- Joined: Wed Aug 14, 2019 8:59 pm
Re: Android command line deployment error
I tried with latest 9.2.1 still facing same issue of device not found and on other side able to deploy it using wizard
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Android command line deployment error
I think I know what the issue is. The device "Nexus6" is likely only defined in your solution settings while the CLI instrumentation tool uses machine settings. Solution settings are used in Ranorex Studio when a solution is opened to ensure the same settings are used when copying a solution to another machine. Machine settings stay with the machine and are used by the standalone tools (outside of Ranorex Studio). Check out the link below for more information on the Ranorex settings files.
https://www.ranorex.com/help/latest/ran ... roduction/
To add this device to the machine settings file, open the instrumentation wizard from the start menu (not from Studio), and add the device through there. When the instrumentation wizard is opened from outside of Studio, the settings (and endpoint configurations) are saved to the machine settings file. Once the device is added to the machine settings file, the CLI instrumentation tool should work since "Nexus6" will be defined.
Cheers,
Ned
https://www.ranorex.com/help/latest/ran ... roduction/
To add this device to the machine settings file, open the instrumentation wizard from the start menu (not from Studio), and add the device through there. When the instrumentation wizard is opened from outside of Studio, the settings (and endpoint configurations) are saved to the machine settings file. Once the device is added to the machine settings file, the CLI instrumentation tool should work since "Nexus6" will be defined.
Cheers,
Ned
-
- Posts: 30
- Joined: Wed Aug 14, 2019 8:59 pm
Re: Android command line deployment error
Great...It works like a charm. you are correct I am adding endpoints from ranorex wizard which is not adding it on machine level ..
Thanks a lot ..
Thanks a lot ..