Are you choosing the application path?
To get the PackageName and ActivityName, first you need to choose the ".apk" file path. From the above image,
-> set the first checkbox ON
->then click on Choose button
-> Give the path of your apk file.
Then it automatically populates the package name and activity names.
Let me know if the doesnt help.
I had renamed the apk, this caused the error. Anyway thanks for the answer. Could you tell why renaming the apk from the original when is built causes this issue?
Thanks once again.
I've tried with renaming too but still the package dropdown is empty.
from command prompt when i user command >aapt dump badging xyz.apk then it shows the package name but its not showing any package name in appiuum...please suggest.
The environment variables are also set.
Environment variable : C:\AppData\Local\Android\android-sdk\tools;C:AppData\Local\Android\android-sdk
Application path: C:\AppData\Local\Android\android-sdk\build-tools\22.0.0\xyz.apk
Please suggest any solution.
I am using apium v1.3.4.1 and my JAVA_HOME path is also correct
I didn't have .apk but i do have their
package name: com.google.android.gms &
activity name: com.google.android.gms.ads.settings.AdsSettingsActivity
based on these i want to inspect elements displayed on the activity using inspector window
OR
is it possible to inspect element in inspector window when i run these package and activity from eclipse??
PLEASE REPLY
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.