Hi everyone, I am new to Mobile automation, I just initiated it with Appium. I have installed all the pre-requisites needed for Appium. However, got stuck in the following issue.
Getting empty ‘package’ and ‘launch_activity’ list on selecting the .apk file.
I checked the path and spaces in the apk file location. Still, not working.
Install same apk file on ur handset or emulator,
Open the calabashtest app (app-debug.apk), while on screen it’s displayed, type below commands on cmd
adb shell
dumpsys window windows | grep -E ‘mCurrentFocus|mFocusedApp’
Thank you @sunil That helped me to get the package name and activity in cmd. However, I am unable to get the same in the Appium App. The package field is not editable and only option is to select from the drop down.
I am still getting empty package drop down in the Appium App.
Please let me know if I am missing something?
You don’t have aapt tool configured in your environment.
you can get the package name and the launch activity of an android app by using it. aapt dump badging <apk path>