if you get an error Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: \cmdline-tools\latest\ then use command with sdk root specified like: >sdkmanager --sdk_root=path-to-where-cmdline-tools-is "platform-tools" "platforms;android-29"
@RaghavPal4 жыл бұрын
Thanks for adding this
@ibitoyeopadokun1334 жыл бұрын
thank you this is very helpful
@romanrozborskyi4394 жыл бұрын
Thank you!
@kartikbaba4 жыл бұрын
Thank you very much sir
@asifshaik10384 жыл бұрын
Sir, I just want to say a big thank you...
@muhtharmk43864 жыл бұрын
Best tutorial on Appium available now in KZbin. Good work!
@RaghavPal4 жыл бұрын
Thanks Muhthar
@UCIUbaf3b8lN7Q5GA8qO Жыл бұрын
Hi Raghav, maybe in the future you will decide to update this Appium course, it is a bit hard to setup in 2023 because a lot of changes happened for the directories and I had a lot of difficulties to setup Appium with all requirements, I spent a few good hours.
@RaghavPal Жыл бұрын
I know, Gabriel, I will plan to add new sessions on Appium
@UCIUbaf3b8lN7Q5GA8qO Жыл бұрын
@@RaghavPal thanks!
@Sammy58328 Жыл бұрын
@@UCIUbaf3b8lN7Q5GA8qO Exactly. When I tried with SE 8 (Class Version 52), it is asking me to use Class Version 55. When I tried with SE11 (Class Version 55), it is saying Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: \cmdline-tools\latest\
@RaghavPal Жыл бұрын
will need to check more on this online
@akashmishra8483 Жыл бұрын
@@Sammy58328 Encountering the same issue. Did it worked for you now?
@DipanjanChakraborty-q5d Жыл бұрын
This session was very useful. As a beginner of this process I can able to set all the environment and required installation. Java 8 was in my system and I was trying to install Android command line tools but unable to do it. Then installed Java 11 and follow the same process and it is done at my end. So if you are facing any issue on Java8 please upgrade to Java 11 and repeat the same, it will be fruitful. Thank you Raghav Sir for all your help and this ready reference.
@RaghavPal Жыл бұрын
Thanks a lot for posting this Dipanjan
@RaiderIQ14 жыл бұрын
Hi Raghav, thank you for all tutorials. They are amazing. I confirme that till today, we have to install java 8.
@RaghavPal4 жыл бұрын
Thanks for watching Haider
@MediaEngineAudioContainerАй бұрын
You are the best , thanks
@RaghavPalАй бұрын
thanks a lot.. humbled
@rajeshwaribarman64354 жыл бұрын
while executing the command for setting up the platforms tool : am getting the error "Error: Could not find or load main class com.android.sdklib.tool.SdkManagerCli" I have set my JAVA_HOME & path is set but still getting the issue . please let me know what to do.
@RaghavPal4 жыл бұрын
Hi Rajeshwari, I checked online and found few resources. A user said - "It should work properly if you are using the latest version of Android SDK (build tools 26.0.0)" Just see if any of these helps you askubuntu.com/questions/1032501/android-sdk-unable-to-run-the-sdk-manager www.b4x.com/android/forum/threads/sdk-manager-v3-31-b4a-v9-01-error.104975/
@siddalingnatikar3204 жыл бұрын
for windows download the zip file from this link ,extract and continue it works. because the current file that we are downloading does not contain all files and folders required. try this. dl.google.com/android/repository/sdk-tools-windows-3859397.zip
@automationra4 жыл бұрын
I'm getting the same error on this.
@automationra4 жыл бұрын
@@siddalingnatikar320 I used this link and it works fine. But when I tried to use the uiautomatorviewer from this folder, I'm gettings the error "Unexpected error while obtaining UI hierarchy". Have you encountered also this one?
@piaa89614 жыл бұрын
@@siddalingnatikar320 it works Thanks to this...But while run the command for api level 28..I m getting error that..... Warning: File C:\Users\User\.android epositories.cfg could not be loaded. Can you please help e into this @Raghav sir Do you have any alternative solution on this Please help...
@softwareengineer8923 Жыл бұрын
Thanks for such an amazing video, it helped a lot!
@RaghavPal Жыл бұрын
You're welcome! 😇
@mizanhaidernaqvi75142 жыл бұрын
If you get an error : could not determine sdk root or some error realted to sdk root Then just goto commandline-tools and cut everything within that folder and create a folder named "latest" inside commandline-tools and then open latest folder which will be empty and paste what ever you have cut from the commandline-tools folder Tips: From the latest release of sdk a new folder named "latest" should be created inside commandline-tools
@RaghavPal2 жыл бұрын
Hi Mizan, Thanks for adding
@Aman-b1b4dАй бұрын
Thanks bro. I would have wasted hours in this, but ur comment saved me
@abhijeets65934 жыл бұрын
Hey Raghav, I have just Started the playlist and i find it quite amazing, Thanks a lot for sharing the knowledge. Just one thing i want to ask, how u are switching between mac and windows in the video ?? do u have both operating system installed in one machine ?
@RaghavPal4 жыл бұрын
I am connected to a remote system Abhijeet
@abhijeets65934 жыл бұрын
@@RaghavPal . thanks Raghav, one more thing I am unable to run the java program I created using appium, u have shown in video, same process I follow still it gives so many errors in console output.
@RaghavPal4 жыл бұрын
will need to check the setup again and logs Abhijeet
@abhijeets65934 жыл бұрын
@@RaghavPal Hey Raghav, I have watched your video multiple times and setup the path and env variables correctly still getting this issue: java.lang.reflect.InvocationTargetException Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT environment variables to the correct Android SDK root directory path. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'DESKTOP-B5QH1M4', ip: '192.168.43.74', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231' Driver info: driver.version: AppiumDriver
@vinodkadam34356 ай бұрын
Its really best appium playlist sir....!!!
@RaghavPal6 ай бұрын
Thanks a lot Vinod
@samchimaobi3398 Жыл бұрын
This is beautiful....Am so enjoying this course
@RaghavPal Жыл бұрын
Wonderful Sam
@MohsinAli-zq5mw Жыл бұрын
Amazing yarr whart a clear and step by step process for installation , i appreciaate keep it up Sir. ❤👍
@RaghavPal Жыл бұрын
Thanks a ton Mohsin
@samiullah-kp2fp5 жыл бұрын
Every beginner needs fully ground level tutorial to understand anything. And you played well.
@RaghavPal5 жыл бұрын
Happy to know it helped Sami
@samiullah-kp2fp5 жыл бұрын
@@RaghavPal Yeah! It helped me a lot. Thanks man.
@MM-me1bj Жыл бұрын
Dear Raghav your are great and thank you for all your efforts in delivering these Appium Knowledge base in such a detail and in easy way really appreciated a lot God Bless you
@RaghavPal Жыл бұрын
Thanks a lot
@kishorgupta32413 жыл бұрын
Hello @Raghav Sir Your tutorial is really helpful and I learnt so much about testing from your tutorials. I just want to comment here is, I am facing issue while downloading sdk manager and want to update here the correct path for the below issue i.e Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: \cmdline-tools\latest\ You just have to set the sdk manager extracted path. It should be look like C:\Users\Admin\android-sdk\cmdline-tools\latest\bin and it will be working fine.
@RaghavPal3 жыл бұрын
Hi Kishor, if you get an error Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: \cmdline-tools\latest\ then use command with sdk root specified like: >sdkmanager --sdk_root=path-to-where-cmdline-tools-is "platform-tools" "platforms;android-29"
@ashif7581 Жыл бұрын
Tq bro its helpful for me.❣️
@manimaddy8079 Жыл бұрын
Ragav when I comment abd devices in cmd getting error pop up like "The code execution cannot proceed because adbwinapi.dll was not found reinstalling the program may fix this problem " what I have to do pls help me
@RaghavPal Жыл бұрын
Hi Mani, The error message you are seeing indicates that the "adbwinapi.dll" file is missing, which is a part of the Android Debug Bridge (ADB) tool. Here are the steps you can follow to resolve this issue: First, make sure that the Android SDK is installed on your system and the ADB tool is included. You can download and install the SDK from the official Android website: developer.android.com/studio. Next, open the command prompt and navigate to the directory where the ADB tool is located. This is typically in the "platform-tools" directory of the Android SDK installation. For example, if your Android SDK is installed in the "C:\Android" directory, you can navigate to the ADB tool directory by running the following command: cd C:\Android\platform-tools Once you are in the ADB tool directory, try running the "adb devices" command again to see if the error still occurs. If the error persists, you may need to manually copy the "adbwinapi.dll" file to the ADB tool directory. Here's how: Navigate to the "platform-tools" directory in your Android SDK installation. Search your computer for the "adbwinapi.dll" file. It may be located in the "extras\google\usb_driver" directory of the Android SDK installation, or in the "C:\Windows\System32" directory. Once you locate the file, copy it to the "platform-tools" directory. After copying the "adbwinapi.dll" file, try running the "adb devices" command again to see if the error has been resolved. If you continue to have issues with the ADB tool, you may need to reinstall the Android SDK or seek further assistance from the Android developer community.
@manishkannamoney74557 ай бұрын
Java 11.0.16 is not supporting sir.How can I resolve?
@masoodahmed57922 жыл бұрын
Very well explained really it is step by step explanation sir hats off to ur work
@RaghavPal2 жыл бұрын
Most welcome Masood
@GurmeetSingh-ls8xb3 жыл бұрын
Thank you so much Raghav for the videos on Appium. They are really helpful. Could you please also create a video of executing these Test cases on a Jenkins server, may be it would be helpful if you could cover the below topics: 1. How to install Appium on Jenkins’s VM ? 2. How to run the Appium server in Jenkins ? 3. tests are not at jenkinsand are added via Source Code Management. 4. How to use Android Emulator Plugin for testing ?
@RaghavPal3 жыл бұрын
Hi Gurmeet, I will plan on this
@GurmeetSingh-ls8xb3 жыл бұрын
@@RaghavPal Hello Raghav, Thanks a lot for this. We would be eagerly waiting :-)
@marcmir705 жыл бұрын
Another GREAT video class! Thank A LOT !!!
@RaghavPal5 жыл бұрын
You're welcome Marcelo
@sunilkumarkr4444 жыл бұрын
Hi Raghav, thanks a lot for such amazing tutorials🙌🙌🙌... I found it very useful .
@RaghavPal4 жыл бұрын
Glad to hear that Sunil
@kies84 жыл бұрын
I'm at 10:35 but I get this error: Error: unable to find or load main class Username\Desktop\android-sdk\tools\bin\\..
@siddalingnatikar3204 жыл бұрын
for windows download the zip file from this link ,extract and continue it works. because the current file that we are downloading does not contain all files and folders required. try this. dl.google.com/android/repository/sdk-tools-windows-3859397.zip
@RaghavPal4 жыл бұрын
Hi Lore, what is your java version
@kies84 жыл бұрын
@@RaghavPal java version "1.8.0_241"
@RaghavPal4 жыл бұрын
Pls check this user's comment - I got some errors in sdk installing process, but I don't change the java version (13.0.1) only the folder structures of unzip, if anybody have the same problem could review this link: stackoverflow.com/questions/60440509/android-command-line-tools-sdkmanager-always-shows-warning-could-not-create-se. Also make sure that environmental variable paths are correct.
@GurudattaPraharaj4 жыл бұрын
@@RaghavPal Hi Bro, When I enter "y" to download platform and platform-tools. download progress is not showing. and i can only see platform folder but platform-tool is not coming. plz help, if possible, plz send your folder which includes platform and platform-tools
@khurrambhatti94704 жыл бұрын
Good video Raghav, thanks. Would like to add something regarding the android/windows sdk that I was getting an error, "Could not find or load main class". After looking it up , I downgraded the version of the sdk and it worked fine.
@RaghavPal4 жыл бұрын
Hi Khurram, Great to know this. I will try to find more on this later
@amollondhe54834 жыл бұрын
@Tilly, Super finding...thanks for sharing...I was stuck over there! Now its working fine for me.
@RaghavPal4 жыл бұрын
Happy to know this
@farukhalvi19885 жыл бұрын
Hi Raghav I want to connect my Android phone with appium python. Is it done the same way as Java or is there a video you have done on that subject. Can you help please. I am using pycharm community edition
@RaghavPal5 жыл бұрын
Hi Alvi, the process should be the same
@farukhalvi19885 жыл бұрын
@@RaghavPal well I did follow it but I am getting a strange error and I can't even find a work around on GitHub or stack overflow.
@RaghavPal5 жыл бұрын
Pls show me the logs
@farukhalvi19885 жыл бұрын
@@RaghavPal never mind i got it fixed. Thanks alot Raghav
@siddalingnatikar3204 жыл бұрын
Hi Raghav, i got stuck at 10:34 after executing command sdkmanager "platform-tools" "platforms;android-28" i am ending up with error Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli pls share the exrtracted folder link so that i can continue.. thank you
@RaghavPal4 жыл бұрын
Hi Siddaling, what is your java version. Pls check www.b4x.com/android/forum/threads/sdk-manager-v3-31-b4a-v9-01-error.104975/
@siddalingnatikar3204 жыл бұрын
@@RaghavPal Hi Raghav , thank you for the reply, but i am facing the same issue my java version is--> java version "1.8.0_144" . Kindly help to understand how to resolve. C:\Users atikars\Downloads\android-sdk\tools\bin>sdkmanager "platform-tools" "platforms;android-25" Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
@andresfukazawa2 жыл бұрын
Thank you so much! Wonderful video!
@RaghavPal2 жыл бұрын
You are so welcome!
@im_ashhrk3 жыл бұрын
Thanks raghav sir for this valuable session 👍
@RaghavPal3 жыл бұрын
Always welcome Ashish
@priyangasubbiah83174 жыл бұрын
Hi Raghav really amazing Videos.. Very good explanation.. Just started learning Appium thanks for sharing knowledge.. How do we connect IOS device on windows?? And i have installed Appium Desktop Client and node.js here how to uninstall Desktop client. Thanks
@RaghavPal4 жыл бұрын
Hi Priyanga, not very straight forward, You can use TestProject for that.
@humanhealth83033 жыл бұрын
Thanks for going step by step !
@RaghavPal3 жыл бұрын
You're welcome!
@kondaa73424 жыл бұрын
Great session. keep it up Raghav.
@RaghavPal4 жыл бұрын
Thanks a ton Konda
@resmipdev64462 жыл бұрын
Thanks, Raghav for a very detailed session on Appium. Could you please explain before installing your sdkmanager file path is C:\Users aghav\android-sdk\tools\bin after installing your tools folder got disappeared ( C:\Users aghav\android-sdk\platform tools)you are getting platform tools directly from android-sdk folder.have you deleted the tools folder manually and moved the content to android-sdk folder?
@RaghavPal2 жыл бұрын
Hi Resmi, pls read some similar comments, will get the details on this
@DeepakMishra-hx7cb3 жыл бұрын
If any one of you are getting an error while running the adb devices command stating that "adb is not recognised as an internal or external command" then you can set the adb path in your system variables and again restart the cmd prompt and try again. You can find the adb in "\android-sdk\platform-tools"
@RaghavPal3 жыл бұрын
Thanks for helping Deepak
@DeepakMishra-hx7cb3 жыл бұрын
Rahav, I am stuck at the point where I have tried connecting my android device with the system and running adb command(Which probably is the last step). The command runs successfully but it does not show the device name. I have enabled the developer mode with the USB debugging enabled as well. PS: I have not inserted any sim in the device. Which is why I thought it is creating an issue. But after inserting the sim card I keep on facing the same issue. Do you have any workaround for this?
@RaghavPal3 жыл бұрын
stop appium if running and run the command again A user comment - I found that the OEM driver is also required which varies from manufacturer to manufacturer. Mine one was samsung , so i downloaded and installed it in my machine. Now everything is working fine.
@mohammedmujadid3 жыл бұрын
1. If you are getting java version error, remove \bin from the java_home and give a try..it worked for me. 2. If you are getting Could not determine SDK root do the following..it worked for me a. Create the following folder path in - C:\Android\cmdline-tools\tools -- extract the downloaded sdkmanager files and place it under tools folder..
@RaghavPal3 жыл бұрын
Thanks for adding the solutions, It will help many
@anoopas38995 ай бұрын
It worked, thank you!!
@syedsaad22764 жыл бұрын
Great work Raghav Sir.. Is there any tutorial for testing mobile applications with appium connection with C#. Appreciate your reply. 🙂
@RaghavPal4 жыл бұрын
Not yet with c#, will do soon. You can find all here - automationstepbystep.com/
@renukashinde46703 жыл бұрын
sir vysor software is compulsory for appium ?
@RaghavPal3 жыл бұрын
No, I used it to show my mobile screen
@AKishoreSanuStudio3 жыл бұрын
Hi Raghav..I already have android installed and SDK is in C:\Users\pc\AppData\Local\Android\Sdk Do I need to istall commandline sdk again?
@RaghavPal3 жыл бұрын
if you have adb.exe in sdk folder, should be fine
@hayaulislam4 жыл бұрын
My device is not connecting to the laptop. I have followed your procedure. The terminal showing nothing after the line : list of attached devices
@RaghavPal4 жыл бұрын
Hi, hope usb debugging in ON pls check again
@hayaulislam4 жыл бұрын
@@RaghavPal it is ON. I have checked it on other phone and adb device command is showing it. But my vivo android 9 is not being listed when i attached the cable.
@hayaulislam4 жыл бұрын
@@RaghavPal do i need to install usb driver for android version 9? I had not install it for any of my device yet
@RaghavPal4 жыл бұрын
Hi I will suggest to check online for your specific mobile device
@yuvaraj97404 жыл бұрын
raghav using vysor my device is getting connected and i can also use it from the vysor ui but the screen is black with Connecting to your android. Googled this thing couldnt solve. can you please help me out. my android version is 9 and i m using platform 28
@RaghavPal4 жыл бұрын
Hi Yuvraj, not sure if this may be due to vysor or your device setup. Have you tried with a diff device or vysor ver. Can check
@salmanlifevlog4 жыл бұрын
Thank you so much for these awesome videos sir. Love from Pakistan
@RaghavPal4 жыл бұрын
Most welcome Salman
@JoelAlex-JosephAlex4 жыл бұрын
Hey Raghav Just wanted to make sure I had installed Android Studio for another purpose and had already downloaded the platforms for my SDK manager there should I be doing the command line tools as well or will that suffice
@RaghavPal4 жыл бұрын
If you have the required platform tools, it should be fine
@techytalks72703 жыл бұрын
Thanks very useful
@RaghavPal3 жыл бұрын
You are welcome Sumit
@yves31193 жыл бұрын
Very helpful, Thank you so much!
@RaghavPal3 жыл бұрын
Thanks Yves
@sharequajabeen38664 жыл бұрын
Hi Raghav, excellent video. It helped me a lot. I am setting up in my project Xamarine Automation framework. Facing challenges with Android sdk.
@RaghavPal4 жыл бұрын
Hi Sharequa, I am yet to work with Xamarine, for now you can try online help
@mesutxavi45564 жыл бұрын
Hi Raghav. Is it ok to have multiple sdk manager in platform folder?Because i need to do a testing in a few devices too.
@RaghavPal4 жыл бұрын
You can , pls give a try
@srinathnaidu66214 жыл бұрын
Hi raghav, Iam getting the below warning while installing platform tools: could not create settings. My java version is : javac 13.0.2 Can you please help me.
@RaghavPal4 жыл бұрын
Hi Srinath, you can try a diff ver of java on your system. Try with 8
@danielvasev72644 жыл бұрын
@@RaghavPal I found a different solution that is not related to the java version. Here is the solution: # Download the latest sdk manager # Unzip to the folder with a specific name => "cmdline-tools" in it we need to add folder "latest" after all the path looks like that C: ......... \cmdline-tools\latest . # In the "latest" folder, we have all files "bin, lib, etc. etc # Creating environment variable ANDROID_HOME with path C:............ \.........\cmdline-tools\latest # And add in the environment path: new line with address: C:\...........\........\cmdline-tools\latest\bin After all of the above is done i can execute the command sdkmanager "platform-tools" "platforms;android-28" from the bin folder and all is OK
@danielvasev72644 жыл бұрын
@@princy761im really glad to help. It was something new for me too, but after quick check with google :))) all is fine now.
@attarrohit4 жыл бұрын
@@danielvasev7264 Thanks. It worked with higher java version.
@praveenkumar-of6zu5 жыл бұрын
Thanks, Raghav for a very detailed session on Appium. Could you please make the video on how to run appium scripts on emulators. This would help everyone who is not on android real devices.
@RaghavPal5 жыл бұрын
Hi Praveen, I will do soon.
@praveenkumar-of6zu5 жыл бұрын
@@RaghavPal Thanks Raghav for the quick reply. Waiting for video.
@praveenkumar-of6zu5 жыл бұрын
Awaiting for your response!!
@praveenkumar-of6zu5 жыл бұрын
@@RaghavPal hopefully you are on this ..
@praveenkumar-of6zu5 жыл бұрын
@@RaghavPal can n plz help on this ?
@lateshs4845 Жыл бұрын
Hi Raghav, thank you for this course. As i am a beginner in Appium, i was able to do the installation with ease watching your tutorial. I am interested to use Python instead of Java, would you please guide us to set up Prerequisite using Python so that I can continue the setup seamlessly.
@RaghavPal Жыл бұрын
Hi Latesh To set up the prerequisites for using Appium with Python, you can follow these steps: 1. Install Python: If you don't have Python installed on your system, you can download and install it from the official Python website (www.python.org/downloads/). Choose the version that is compatible with your operating system. 2. Set up Python environment: After installing Python, make sure it is added to your system's PATH environment variable. This will allow you to run Python commands from any directory in the terminal or command prompt. 3. Install pip: Pip is the package manager for Python, and it allows you to easily install and manage Python packages. By default, pip is usually installed along with Python. You can verify if pip is installed by running the following command in the terminal or command prompt: ``` pip --version ``` If it's not installed, you can refer to the official pip documentation for installation instructions (pip.pypa.io/en/stable/installation/). 4. Install Appium-Python Client: The Appium-Python Client is a Python library that provides bindings for the Appium server. It allows you to write automation scripts in Python for mobile app testing with Appium. You can install it using pip by running the following command: ``` pip install Appium-Python-Client ``` 5. Install Appium Server: Appium requires a server to be running in order to interact with the mobile devices or emulators. You can install the Appium server by using npm (Node Package Manager). First, ensure that you have Node.js installed on your system. Then, run the following command in the terminal or command prompt to install Appium globally: ``` npm install -g appium ``` 6. Install Appium Doctor (optional): Appium Doctor is a helpful utility that checks your system for any dependencies required by Appium. It can identify missing dependencies and provide recommendations for installation. To install Appium Doctor, run the following command: ``` npm install -g appium-doctor ``` With these steps, you should have the necessary prerequisites set up to use Appium with Python. You can now proceed with writing automation scripts using the Appium-Python Client and executing them on the Appium server. Note: It's also recommended to have an IDE (Integrated Development Environment) for Python, such as PyCharm or Visual Studio Code, to help you write and manage your Python code more efficiently.
@lateshs4845 Жыл бұрын
@@RaghavPal Thank you for your response
@couplestour5 жыл бұрын
Hi raghav , i got this error ,adb server version (40) doesn't match this client (41); killing... could not read ok from ADB Server * failed to start daemon adb.exe: failed to check server version: cannot connect to daemon
@RaghavPal5 жыл бұрын
Hi Gunjali, Are you using virtual device. Issue can be due to the difference in adb versions in the development machine and the connected device/emulator. This will help stackoverflow.com/questions/38214012/solving-adb-server-version-doesnt-match-this-client-error stackoverflow.com/questions/5092542/adb-server-version-doesnt-match-this-client
@lawrencechandrasekar94885 жыл бұрын
Thank you for the video, Quick question Is vysor is free of cost to install or paid ?
@RaghavPal5 жыл бұрын
Hi Lawrence, it has both ver. I am using free
@sandeepdeshpandesandy5 жыл бұрын
Hi Raghav , Incase there are multiple AppActivity (Ex: com.android.contacts.activities.PeopleActivity, .....etc), how can we identify the activity usage.Like launching a app require an activity etc....
@RaghavPal5 жыл бұрын
Hi Sandeep, 1. Unlock mobile device 2. Open CMD 3. Run command : adb devices 4. Run command : adb shell 5. On mobile store open the app that you want to check 6. Run command : dumpsys window windows | grep -E ‘mCurrentFocus’ 7. appPackage and appActivity name will get displayed. Copy from here www.automationtestinghub.com/apppackage-and-appactivity-name/
@sandeepdeshpandesandy5 жыл бұрын
@@RaghavPal thanks
@sandeepdeshpandesandy5 жыл бұрын
@@RaghavPal hi have run the command but it is not working. (dumpsys window windows | grep -E 'mCurrentFocus' )
@RaghavPal5 жыл бұрын
What is the issue. Also check some online help
@Gsuresh_39 ай бұрын
What is use install sdk? To connect my mobile to appium right, without installing sdk, can't I do? Because sdk installation facing an issue
@RaghavPal9 ай бұрын
Suresh Let's discuss the steps for setting up Appium and connecting your mobile device for testing. Appium is a powerful tool for automating mobile applications, and it relies on certain prerequisites, including the Android SDK. However, I'll provide alternative approaches as well. 1. Installing Appium: - Option 1 (Recommended): - Install Appium globally using the following NPM command: ``` npm i --location=global appium ``` - This command ensures that you can access Appium from the command line by running `appium`. - Once installed, you'll see output like: "[Appium] Welcome to Appium v2.0.0." - You can then quit the server (CTRL-C) and proceed to the next steps¹. - Option 2 (Alternative): - Download the Android SDK from the official source. - Unzip the downloaded folder and locate the `SDK Manager.exe` file. - The SDK Manager allows you to manage Android SDK components, including platform tools and system images². 2. Connecting Mobile Devices: - With Android SDK Installed: - Having the Android SDK installed is beneficial because it provides essential tools like ADB (Android Debug Bridge). - ADB allows you to communicate with Android devices over USB or Wi-Fi. - You can connect your mobile device via USB, enable USB debugging, and use ADB commands to interact with the device. - Without Android SDK: - If you're unable to install the Android SDK due to issues, consider the following alternatives: - USB Debugging Mode: - On your Android device, go to Settings > About phone. - Tap on Build number multiple times until you see a message saying you're now a developer. - Go back to Settings, and you'll find a new option called Developer options. - Enable USB debugging in Developer options. - Connect your device to your computer via USB. - You can now use ADB commands without the full SDK installation. - Appium Doctor: - Install `appium-doctor` globally using: ``` npm install -g appium-doctor ``` - Run `appium-doctor` with the `--android` flag to verify dependencies. - It will check if everything needed for Android automation is set up correctly⁵. Remember that while the Android SDK provides additional tools and flexibility, you can still work with Appium using the alternatives mentioned above. Choose the approach that best suits your situation, and happy testing
@Gsuresh_39 ай бұрын
@@RaghavPal tqs for this info
@cibelless5104 жыл бұрын
I solved - Using java 8 and I create a folder android-sdk, another folder inside call cmdline-tools and copy the tool folder inside android-sdk--| |--> cmdline-tools-->| |--> copy tools here Works
@RaghavPal4 жыл бұрын
Hi Vinicius, great to know this
@c.baluraju433311 ай бұрын
Hi sir, You are writing all the steps in notepad right. Can i get access to all your documents??
@RaghavPal11 ай бұрын
Have added in the video description
@musamuradzade16062 жыл бұрын
Great job, thanks)
@RaghavPal2 жыл бұрын
Most welcome
@Bloodyslayer734 жыл бұрын
Hi Raghav. Does the same process apply to use Robot Framework with Appium (for Mobile test automation)?
@RaghavPal4 жыл бұрын
Yes, the appium setup will be the same
@shanky0464 жыл бұрын
Hi Raghav,thanks for the amazing video but i do not see tests folder inside appData/android/Sdk folder...why is that and is this the reason i am not able to run sdkmanager --lists in cmd?
@RaghavPal4 жыл бұрын
Hi Shashank, you can try getting the SDK folder from a diff location and check again
@muhammadmamduhabdullah99205 жыл бұрын
"00:09:20" First Thank you for this awesome tutorial, but i'd like to point out that You said when running this command [sdkmanager "platform-tools" "platforms;android-28" ] that "A higher API version will work for a lower one", however this did not happen -in my case- and i spent a whole day trying to figure out the cause of the problem.
@RaghavPal5 жыл бұрын
Hi thanks for watching, I have experienced this and therefore shared the thought, but will check again on this.
@palakmehta64984 жыл бұрын
Hi Raghav, Thanks for your wonderful guidance. I was going good uptill this. But, after getting issue in java version 11, I reinstalled version 8. Still it showing me error "could not find or load main class com.android.sdklib.tool.sdkmanagercli" . Is this same issue related to java version?
@RaghavPal4 жыл бұрын
Hi Palak, pls check if the environment variables are set for java 8 and try again
@siddalingnatikar3204 жыл бұрын
download the zip file from this link ,extract and continue it works. because the current file that we are downloading does not contain all files and folders required. try this. dl.google.com/android/repository/sdk-tools-windows-3859397.zip
@palakmehta64984 жыл бұрын
@@RaghavPal Thanks Raghav, but I tried all java versions still it's same issue. Let me try using the links shared by you and other people for sdkmanager. I hope it may work.
@palakmehta64984 жыл бұрын
@@siddalingnatikar320 Ya you're right. Current file for SDK tools is just 77 mb instead of 147mb as shown in video tutorial. Let me try this link. Thanks for sharing.
@siddalingnatikar3204 жыл бұрын
@@palakmehta6498 Thank you .
@Roneet184 жыл бұрын
sdk platform tools are not installing in java 14 ..... as suggested by you , is it compulsory to change java version only for sdkmanager ? my other applications may not work with lower version of java.
@RaghavPal4 жыл бұрын
Hi Sonali, DON'T have to downgrade your Java version. Just follow the steps described in the link. It works fine :) stackoverflow.com/a/60598900/11276253
@sivayaDamaraju Жыл бұрын
Hi Raghav, I try to learn the Appium now i was installing the sdkmanger the error was raised can u give me any suggestionsto me
@RaghavPal Жыл бұрын
will need more details on the error Sivaya
@abhishekthomas77995 жыл бұрын
Great content Raghav. Please make a video of creating an emulator from command line sdk.
@RaghavPal5 жыл бұрын
I will do Abhishek
@sedighehahadi36342 жыл бұрын
hi Raghav .I have a question .I downloaded latest version of java from oracle site . set environment variables . when I run this command sdkmanager platform-tools platforms android-30 I get this error Failed to find package 'platforms'. what should I do ?
@RaghavPal2 жыл бұрын
Hi, pls check this stackoverflow.com/questions/51183581/failed-to-find-platform-sdk-with-path-platformsandroid-p
@GracyIma10 ай бұрын
can you advice how to set up vysor?
@RaghavPal10 ай бұрын
You just need to download and install it.. can also use it as a Chrome extenstion
@alanfilas46763 жыл бұрын
If your device is not listed in step 4 you probably should enable USB Debugging in the first place (so first perform steps 5 and 6). It worked for me :)
@RaghavPal3 жыл бұрын
thanks for adding Alan
@silkys83433 жыл бұрын
Hi Raghav, I am new to Automation, can you please suggest should I start learning with Appium-python or Appium - Java? It would be great help for me...Thank you so much
@RaghavPal3 жыл бұрын
Hi Silky, both are good, but if you do not have any preference, can go with Python
@silkys83433 жыл бұрын
Thank you so much for quick and valuable reply. I am a big fan of your way of teaching. Please share your tutorial link of Appium-python so that I can start my learning. Thank you :-)
@RaghavPal3 жыл бұрын
I am yet to create on Appium with Python, but I have Appium with Java, can check all here - automationstepbystep.com/
@silkys83433 жыл бұрын
OK Thanks Raghav!! I will wait for your Appium with Python Tutorial.
@ishwaryakekkarla65193 жыл бұрын
Hii Raghav ,I am getting only following folders when i downloaded the sdk manager bin lib notice period source.properties
@RaghavPal3 жыл бұрын
Not sure of the setup Ishwarya, Pls check and do again, take some online help if needed
@reshmamahendran29835 жыл бұрын
Hi Raghav, Thankyou for the wonderful tutorial, i tried to install platform tools im getting a error like "'sdkmanager' is not recognized as an internal or external command, operable program or batch file." Please help to resolve this..........
@RaghavPal5 жыл бұрын
Hi Reshma, What is your java ver. You can check on cmd with command java -version. uiautomatorviewer and sdkmanager.bat usually works well with java 8 stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a stackoverflow.com/questions/49506036/uiautomatorviewer-error-could-not-create-the-java-virtual-machine
@Samarthswara Жыл бұрын
Hi Raghav, the bin folder from the downloaded zip --> extracted folder for command line tools doesnt contain the "uiautomatorviewer.bat" file. how to get this and make it work just like installing platform tools in cmd prompt?
@RaghavPal Жыл бұрын
To get the `uiautomatorviewer.bat` file and make it work just like installing platform tools in cmd prompt, you can follow these steps: 1. Download the latest version of the Android SDK Command-line Tools. 2. Extract the downloaded zip to a folder on your computer. 3. Add the folder to your `PATH` environment variable. 4. Open a command prompt window. 5. Navigate to the folder where you extracted the Android SDK Command-line Tools. 6. Run the following command: " bin/uiautomatorviewer.bat " This will open the UIAutomatorViewer tool. If the `uiautomatorviewer.bat` file is not in the `bin` folder, you can create it yourself. To do this, open a text editor and create a new file called `uiautomatorviewer.bat`. Add the following lines to the file: " @echo off java -jar uiautomatorviewer.jar " Save the file and close the text editor. To make the `uiautomatorviewer.bat` file work just like installing platform tools in cmd prompt, you can create a shortcut to it on your desktop. To do this, right-click on the file and select `Create shortcut`. Then, right-click on the shortcut and select `Properties`. In the `Properties` window, go to the `Shortcut` tab and click on the `Change Target` button. In the `Change Target` window, add the following to the beginning of the target path: " %ANDROID_SDK_ROOT%\platform-tools\ " For example, if the target path is `C:\Users\user\Desktop\uiautomatorviewer.bat`, you would change it to: " %ANDROID_SDK_ROOT%\platform-tools\C:\Users\user\Desktop\uiautomatorviewer.bat " Click `OK` to save the changes. Now, you can double-click on the shortcut to open the UIAutomatorViewer tool. I hope this helps
@SarangHoley5 жыл бұрын
Simple and clear 😊
@RaghavPal5 жыл бұрын
Thanks Sarang
@ashwinkumar54943 жыл бұрын
Hi Raghav, My android folder doesn't contains the bin folder what could be the issue. In fact i have installed the Android Studio. Please advice.
@RaghavPal3 жыл бұрын
Hi Ashwin, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@FauziaRafa4 жыл бұрын
The updated "command line tools only" varies in file size and lacks files
@RaghavPal4 жыл бұрын
Hi Fauzia, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@RajuDas-zn3gx4 жыл бұрын
Do you have video for connecting iphone to windows?
@RaghavPal4 жыл бұрын
No, you can try platforms like TestProject for that
@sudhir22sharma5 жыл бұрын
I followed all the steps mentioned in this video and yet i was not able to get my device name in adb devices command. After googling for an hour I found that the OEM driver is also required which varies from manufacturer to manufacturer. Mine one was samsung , so i downloaded and installed it in my machine. Now everything is working fine.
@RaghavPal5 жыл бұрын
Thanks for this info Sudhir, will be helpful to many
@asisharavind6554 жыл бұрын
Hi Raghav. Thank you for the great explanation. I have a question. how to connect iphone device on windows for appium testing? Does the android sdk work with iphone ?
@RaghavPal4 жыл бұрын
You cannot do directly on windows, will need some mac agent
@asisharavind6554 жыл бұрын
Thanks for the response.
@priyankurghosh143 жыл бұрын
Hi Raghav, I have follow the each and every step but at the end no devices shown when i run the command "adb devices" in cmd. Before that I have on the developer mode and also on the usb debugging
@RaghavPal3 жыл бұрын
Hi Priyankur, do you see any other message, will need to check more online
@priyankurghosh143 жыл бұрын
@@RaghavPal No Raghav, there is no other message
@RaghavPal3 жыл бұрын
okay
@allouismiguelongsuco61875 жыл бұрын
Hi Raghav do you have one for IOS?
@RaghavPal5 жыл бұрын
Hi Louis, for iOS as of now I have session on simulator, not yet on real device
@enrichsalon69934 жыл бұрын
Hi Ragahv, I have installed Java 8 as well SDKmanger...but after running this command "sdkmanager "platform-tools" "platforms;android-28"" as my android version is 28 , Platform folder is not getting created.. ..
@RaghavPal4 жыл бұрын
try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@enrichsalon69934 жыл бұрын
thanks for the reply...have used mentioned link and download tools folder and run "sdkmanager "platform-tools" "platforms;android-28" command but when i accept licences getting warning"Failed to read or create install properties file",bcoz of that platform folder is not getting created inside tools..... Plz help me out
@anitham7342 жыл бұрын
HI Sir, i have been looking for mob app testing too. Finally i found ur channel. It is helping me a lot. sdkmanager on JAVA 18 is working fine.
@RaghavPal2 жыл бұрын
Glad to hear this Anitha
@firozhazra28234 жыл бұрын
Hi Raghav, I have Java 8 installed Still i am unable to execute platform folder using: sdkmanager "platform-tools" "platforms;android-28" command. Plz suggest
@RaghavPal4 жыл бұрын
Hi Firoz, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@MuhammadBilal-gf7ci5 жыл бұрын
Nicely explained, every =thing is working just as like in the vedio
@RaghavPal5 жыл бұрын
So happy to know this Bilal
@shubhamgaikwad72578 ай бұрын
if you get an error Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: \cmdline-tools\latest\ Do the following step: step 1- create a folder named as 'tools' inside your extracted cmdlines-tools folder. step 2- select (cut) all folders and files in the cmdlines-tools and paste inside the tools folder you have created. step 3- now open the bin folder which we have pasted inside the tools folder and from there open cmd. step 4- paste the sdk manager command you have copied from android studio official page. Hoping this will help you.
@RaghavPal8 ай бұрын
Thanks for adding Shubham
@AadiShirishShweta5 ай бұрын
That really worked like a cream... Thank you.
@sandhyanatarajan62014 жыл бұрын
Hi Raghav, It is really wonderful session. I am facing below issue , I followed all your steps from this video, but on running ADB devices in cmd , list of devices not listed. On checking the device manager it is shown as Adb interface - No driver found. Could pls share your input Thanks
@RaghavPal4 жыл бұрын
Hi Sandhya, just to confirm is the error is No Driver found or No Device found. In case it is the latter, pls ensure you have enabled USB Debugging on your device
@MrVinodKumar91954 жыл бұрын
I have seen some missing on 6:01 and time 6:18 time under the 'Tools' folder. screenshot: prnt.sc/sa6gev
@RaghavPal4 жыл бұрын
What exactly is the difference you see Vinod
@upasanasatapathy65294 жыл бұрын
Hello your videos are really very good and understandable .. Can you please upload a video on how to connect with virtual device
@RaghavPal4 жыл бұрын
will do Upasana, thanks
@karnansastha51825 жыл бұрын
After installing sdk manager the platform tools not insatlled inside the tools folder so what is the issue please reply.
@RaghavPal5 жыл бұрын
Hi Karnan, It's difficult to say without any logs or details. Hope you have done all steps. Pls check again with the video
@realdrumon79824 жыл бұрын
Hi Raghav I have java 8 but when I use cmd to know javac version then it is not showing and one more thing it is still showing error of could not create settings.
@RaghavPal4 жыл бұрын
Hi, looks like you have not set env variables for java on the system. Pls follow this Windows - kzbin.info/www/bejne/fKLTnntugruCbKM Mac - kzbin.info/www/bejne/hITZpZypZ8t6oqM
@talhaadnan33344 жыл бұрын
i tried on java 12 but when i enter command sdkmanager "platform-tools" "platforms;android-28" this showing me an error ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-12.0.2\bin
@RaghavPal4 жыл бұрын
It may work with java 8 Or try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@punarvasupandey60084 жыл бұрын
I explicitly installed platform-tools from (dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip) then extracted the platform-tools folder into the SDK folder.It worked for java 13 also.
@RaghavPal4 жыл бұрын
Thanks for adding Punarvasu
@hemantjadhav117610 ай бұрын
Hello sir , I am not getting last prerequisites exactly "for device memory free space is needed"?
@RaghavPal10 ай бұрын
Where exactly Hemant.. I may have said that there should be some free space for creating project
@ibitoyeopadokun1334 жыл бұрын
Thanks you so much Raghav
@RaghavPal4 жыл бұрын
Most welcome
@BihariInUK5 жыл бұрын
Hi Can we turn off the mobile data in Appium to perform some testing in offline mode
@RaghavPal5 жыл бұрын
Hi Ujjwal, you should be able to. Check this - stackoverflow.com/questions/37269590/appium-can-i-do-validations-in-offline-mode-in-appium discuss.appium.io/t/change-mobile-state-to-offline-mode-airplane-mode-on-android-and-ios/5094/3
@umaganta3 жыл бұрын
Hi Ragav, I losted Android folder from AppData. then I was trying to give android_sdk_root path in environmental variables but again getting same issue like "An unknown server server side error occurring while proceesing the command. Original error: The android sdk robot folder 'c/users/name/AppData/local/Android/SDK/platform-tools doesn't exist on local file system"
@RaghavPal3 жыл бұрын
Hi Uma, pls check the comments of this video
@benticruzalphonse16675 жыл бұрын
How could i reach the full course? Thanks
@RaghavPal5 жыл бұрын
You can get them here - automationstepbystep.com/online-courses/
@benticruzalphonse16675 жыл бұрын
@@RaghavPal Thank you
@shreeteshkumarmohanty8241 Жыл бұрын
Hi raghav..it is an awseome session till now..ehile i have downloaded sdk folder earlier but didn't ot ui automator tool in that previous downlaod..so i uninstalled and downloaded again the new sdk folder ..and when i am running the andrioid version code in cmd for getting the platform and platform tools.. it's showing me an exception in thread "main" java..could u please help me out ....
@RaghavPal Жыл бұрын
Hi Shreetesh Here are a few things you can try to fix the "Exception in thread 'main' java" error when running the Android version code in cmd: 1. Make sure that you have installed the Android SDK Platform-Tools. You can do this by opening the Android SDK Manager and checking the "Android SDK Platform-Tools" checkbox. 2. Make sure that you have set the ANDROID_HOME environment variable to the location of your Android SDK. You can do this by opening a command prompt and running the following command: ``` set ANDROID_HOME=C:\path\to\android-sdk ``` 3. Try running the Android version code again. If you are still getting the error, try the following: * Close all instances of Android Studio and restart your computer. * Uninstall and reinstall the Android SDK Platform-Tools. * Contact Google Support for help. Here are some additional troubleshooting tips: * Make sure that you are using the latest version of the Android SDK. * Make sure that you are using the correct command to run the Android version code. * Make sure that there are no errors in your Android project. * Try running the Android version code on a different computer
@rakeshkumarbarik71334 жыл бұрын
Hi,But in my case java version 8 is installed but the command shows error that Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
@RaghavPal4 жыл бұрын
Hi, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@sagarbobade20365 жыл бұрын
Launched first app. Downloading android api version by cmd is more easier than Sdkmanager app. Bdw You are the one on whom I trust and start learning any new technology/thing by watching from first video. I would like to add, I got an error on launch that missing "aapt.exe". Then I copied from c://user//appdata//sdkmanager//platform-tools//aapt.exe To "Platform-tools" the path which you have mentioned in ANDROID_HOME. Thanks,
@RaghavPal5 жыл бұрын
Hi Sagar, thanks for the information.
@ruchikaahuja1983 Жыл бұрын
Hi Raghav, I am getting the issue when ran appium-doctor after android setup. "android, emulator, apkanalyzer.bat could NOT be found in C:\Users uchi\OneDrive\Desktop\android_sdk!" Please advise.
@RaghavPal Жыл бұрын
Hi Ruchika The error message "android, emulator, apkanalyzer.bat could NOT be found in C:\Users uchi\OneDrive\Desktop\android_sdk!" means that the Appium doctor tool is unable to find the following files in your Android SDK path: * `android.bat` * `emulator.exe` * `apkanalyzer.bat` These files are required for Appium to function properly, so you will need to make sure that they are installed in your Android SDK path. To do this, follow these steps: 1. Open the Android SDK Manager. 2. Click on the "SDK Tools" tab. 3. Make sure that the "Android SDK Tools" package is checked. 4. Click on the "Install" button. Once the installation is complete, you should be able to run the Appium doctor tool without any errors. If you are still getting the error message after installing the "Android SDK Tools" package, then you may need to restart your computer. Here are some additional tips that may help you resolve the issue: * Make sure that the Android SDK path is set in your environment variables. * Try uninstalling and reinstalling the Android SDK. * If you are using a virtual machine, make sure that the virtual machine has enough resources to run the Android SDK. If you are still having trouble, you can contact the Appium support team for assistance
@rajshriabojwar25353 жыл бұрын
Hi Raghav, I couldn't able to find sdk manager in my downloaded android folder
@RaghavPal3 жыл бұрын
Hi Rajshri, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools Also check other comments
@rajeshbe22345 жыл бұрын
Hi Raghav, I have installed java11 in my system but platform-tools command is not working so I think this command is working in java 8.
@RaghavPal5 жыл бұрын
Yes Rajesh, Java 8 should work.
@gisgndecan01115 жыл бұрын
Hi Raghav, could you please let me know whether you have created steps to connect to Virtual Android Device (Android Studio)? Thanks much in advance.