Hello Kanishka,
Greetings!!
I am new to appium- Mobile Automation, trying to make a simple mobile browser automation demo. My goal is to use appium with capybara along with Ruby, so that the appium inherits all capybara DSL. Please can you help me with any sample code, so that it can help me with start up. It will be a great help.
Thanks.
@naazneen
Did you add ANDROID_HOME to system variables and both of the "build-tools" and "platform-tools" to the path too??
Has anyone found a solution to this issue?
Windows 7 machine
I have installed Appium 1.4.13.1
I have tried this on Java 1.8 and 1.7 and neither are working.
I have API17 installed as suggested
I have no spaces in my apk path:
C:\Automation\Android_Mobile_App_Repository\FlipKart_APK_3.1
I added ANDROID_HOME to system variables and both of the "build-tools" and "platform-tools" to the path
I have the following as USER VARIABLES from setting up Selenium and Appium:
ANDROID_HOME C:\Program Files (x86)\Android\android-sdk
ANDROID_PLATFORM_TOOLS C:\Program Files (x86)\Android\android-sdk\platform-tools
ANDROID_TOOLS C:\Program Files (x86)\Android\android-sdk\tools
JAVA_HOME C:\Program Files\Java\jdk1.7.0_60
M2 %M2_HOME%\bin;%JAVA_HOME%\bin
M2_HOME C:\Program Files\Apache Software Foundation\apache-maven-3.2.1
Path
%M2%;
C:\Users\crhoads\AppData\Local\Apps\cURL\bin;
%ANDROID_HOME%\tools;
%ANDROID_HOME%\platform-tools;
%ANDROID_HOME%\build-tools;
C:\Users\crhoads\AppData\Roaming\npm
I added JAVA_HOME to the System Variables as I didn't know if it needs to go in System or User Variables. It was originally only in User Variables, As well I added %JAVA_HOME%\bin to the System Variable "Path". Is this needed as a System Variable or just the User Variables?
Either way before I added it and after I added it, still nothing available in the drop down menus.
I have the following as SYSTEM VARIABLES:
JAVA_HOME C:\Program Files\Java\jdk1.7.0_60
ANDROID_HOME C:\Program Files (x86)\Android\android-sdk
PLATFORM_TOOLS C:\Program Files (x86)\Android\android-sdk\platform-tools
TOOLS C:\Program Files (x86)\Android\android-sdk\tools;
Path
C:\ProgramData\Oracle\Java\javapath;
C:\Program Files (x86)\iis express\PHP\v5.4;
C:\Program Files\Apache Software Foundation\apache-maven-3.2.1\bin;
C:\Program Files\Java\jdk1.8.0_65\bin;
C:\Program Files\Java\jdk1.7.0_60\bin;
C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\OpenText\Viewer\bin;
C:\Program Files\Java\jdk1.7.0_60\bin;
C:\Program Files (x86)\Java\jre1.8.0_65\bin;
C:\Program Files (x86)\Android\android-sdk;
C:\Program Files (x86)\Git\cmd;
C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;
C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
C:\Program Files\SeleniumBrowserDrivers;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;
C:\Program Files\IVI Foundation\VISA\Win64\Bin\;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;
C:\Users\crhoads.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;
C:\Program Files\Apache Software Foundation\apache-maven-3.2.1\bin;
C:\Users\crhoads\AppD;C:\Program Files\MySQL\MySQL Server 5.1\bin;
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;%systemroot%\System32\WindowsPowerShell\v1.0\;
%systemroot%\System32\WindowsPowerShell\v1.0\;
%ANDROID_HOME%\tools;
%ANDROID_HOME%\platform-tools;
%ANDROID_HOME%\build-tools;
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;
C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;
C:\Program Files\nodejs\;
C:\Program Files (x86)\nodejs\;
%JAVA_HOME%\bin
Any and all help is greatly appreciated.
Since this is the first Google result for "appium cannot enter package empty drop down" I am necro-posting my Windows7 workaround. It astounds me that an issue spanning so many years has not been definitively fixed...
Thus, as a workaround for accessing apps already installed on the device, Shut down Appium and then edit the user.config file in:
C:\Users\<yourUserName>\AppData\Local\Appium_Contributors\Appium.exe_Url_<someString>\<appiumVersion#>\
Therein you will find the following XML markup among all other (supposedly) UI configurable settings:
<setting name="AndroidPackage" serializeAs="String">
<value>_yourPackageName_</value>
</setting>
<setting name="AndroidActivity" serializeAs="String">
<value>_yourActivityName_</value>
</setting>
Change the values, save, then relaunch Appium.
The UI will still be broken, but the server will start correctly with user.config properties.
For good measure, you may wish to delete any files from past Appium version folders.
It should be noted that I install my Appium server in a non-standard location (i.e. NOT in C:\Program Files (x86)\Appium) as I prefer to separate my Dev environment from my OS environment.
Hope this helps.
Hi,
I tried to set JDK path but still my Appium doesn't show packages. Can you please help in it . Its urgent.
I have set environment variable.
export JAVA_JDK=Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
export PATH=$JAVA_JDK/bin=$PATH
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin=$PATH
ANDRIOD_HOME=/Users/snehalgajbhiye/Library/Android/sdk
export PATH=$ANDRIOD_HOME/platform-tools:$PATH
export PATH=$ANDRIOD_HOME/tools:$PATH
export PATH=/usr/local/bin:$PATH
Hi @akshaytaneja21,
You can use APKinfo.apk3 app available in play store for android to find out app package name and launcher activity.
Hi Kanishka, i am new to Appium and I am facing the same issue. “the choose button” is getting closed.
If you have solved this issue, please please:disappointed_relieved: reply back or reply me on
saurabh.ar02@gmail.com
Thanks!