Wow wow wow. Not exaggerating here, this was actually the most concise yet comprehensive tutorial Ive come across in ages. Thank you so so much.
@RaghavPal4 жыл бұрын
So happy and humbled to see your message. Thanks a lot
@specttech99 Жыл бұрын
@@RaghavPal can u please do for windows Or any link to a guide to follow 🙏
@SiddarthVaderYT5 жыл бұрын
Why are instructors like you so underrated. Amazing explanations
@RaghavPal5 жыл бұрын
Thanks for liking.
@SiddarthVaderYT4 жыл бұрын
@@RaghavPal Hi Sir, i want to clear this doubt below: i was following every step to setup appium and sdk and then i made the first appium project using java but the eclipse is not able to run the code . these following errors are coming up: 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: Error executing adbExec. Original error: 'Command ''C:\\Users\\SID\\Desktop\\SDK tools\\platform-tools\\adb.exe' -P 5037 -s 12e7dee0 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
@RaghavPal4 жыл бұрын
Hi, I was reading on this online and found this : I was also facing the same issue issue:WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error getting device platform version. Original error: Error executing adbExec. Original error: 'Command '/Users/jebran/Library/Android/sdk/platform-tools/adb -P 5037 -s LG********* shell getprop ro.build.version.release' timed out after 20000ms'; Stderr: ''; Code: 'null' Well this issue is because of the mobile, try the below code in the "terminal" adb shell getprop if you get the resopnse then every thing is fine, if you dont get the response then unplug the mobile then once again plug the mobile and run the above code , if it works then HURREY .........! the code is fine .. It works to me... :-) Pls check - github.com/appium/appium/issues/8100
@SiddarthVaderYT4 жыл бұрын
@@RaghavPal Thanks Sir, It is working fine now
@pink_x1 Жыл бұрын
6:21 Hi Raghav! I have macOS Monterey and have a problem: I can’t get into the /usr/local/share folder, there is no such path. Could you tell me how I can find the right folder?
@RaghavPal Жыл бұрын
The /usr/local/share folder is a standard directory on macOS Monterey. If you can't find it, it may be because it is hidden. To view hidden folders in the Finder, press Command + Shift + G to open the Go to Folder dialog box. Then, type the following path and press Enter: /usr/local/share The /usr/local/share folder should now be visible. If you still can't find it, you may need to create it manually. To do this, open the Terminal application and type the following command: sudo mkdir /usr/local/share This will create the /usr/local/share folder if it doesn't already exist. I hope this helps
@purbashaprusty18223 жыл бұрын
The best appium videos to follow .Finally feeling so happy after getting all the steps downloaded and setup perfectly .
@RaghavPal3 жыл бұрын
So happy & humbled to see this Purbasha
@yasmeenhasan9925 Жыл бұрын
The way you teach nicely and smoothly that’s amazing
@RaghavPal Жыл бұрын
Most welcome Yasmeen
@testingtrail4 жыл бұрын
I admire the way you put this in one video, I have struggled in the past by installing all of this, but this clear and even better: working!
@RaghavPal4 жыл бұрын
So happy to know this Jorge, Enjoy learning & let me know if you face acy issues
@testingtrail4 жыл бұрын
@@RaghavPal will let you know, thank you!!!
@didierdefrel55865 жыл бұрын
je suis francais, merci pour tout ton travail de recherche tu est un bon professeur continue comme ca, merci
@RaghavPal5 жыл бұрын
Je vous en prie
@rajann443 жыл бұрын
Great video sir. Keep up the good work 😇
@RaghavPal3 жыл бұрын
Thanks Rajan
@Sanjeevkumar-cl6nl4 жыл бұрын
Every videos from you are simply awesome, In every videos you are just proving for keeping your channel name as Step by step✌🏻... Great work dude
@RaghavPal4 жыл бұрын
Thank you so much Sanjeev
@Sanjeevkumar-cl6nl4 жыл бұрын
@@RaghavPal I'm getting the below error while executing the cmd "sdkmanager "platform-tools" "platforms;android-28"" Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) at com.android.repository.api.SchemaModule.(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more
@RaghavPal4 жыл бұрын
What is your java ver. try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@dinoskoumoussis82955 жыл бұрын
Thanks so much for doing these videos. They are awesome!
@RaghavPal5 жыл бұрын
You're welcome Constantine
@javierspina66684 жыл бұрын
Hey! thanks a lot for these videos and the whole appium videos! I noticed that after updating the .bash_profile file you need to either restart your mac or just execute "source .bash_profile" on your terminal for it to be recognized by the OS.
@RaghavPal4 жыл бұрын
Hi Javier, thanks for the inputs, I will check more on this
@Neigik4 жыл бұрын
thank you very much! As a beginner of using mac and all that terminal stuff, I'm glad to see your comment.
@localaccount96735 жыл бұрын
I think the issue you were having at 22:50 was because the ANDROID_HOME path wasn't in quotes "/usr/local/share/android-sdk"
@RaghavPal5 жыл бұрын
Thanks for pointing this.
@piyushpotfore44113 жыл бұрын
Thanks so much for this !
@RaghavPal3 жыл бұрын
You're very welcome Piyush
@Sainilakhwinder6294 жыл бұрын
Great video it was very helpful. Thanks
@RaghavPal4 жыл бұрын
Glad it was helpful Surma
@411station8 ай бұрын
Thank you so much!
@RaghavPal8 ай бұрын
You're welcome
@karthiksubramaniyan47584 жыл бұрын
Hello Raghav, Few things that are missing or can be added which will be a great help to all the viewers since you are very good at conveying. 1. Why we set path in Environament Variable and Path? 2. While explaining all the setup for appium. Could You please explain the reasons for all the pre requisites we have installed. a. Node.js b.Andriod SDK, also the reason to set path of ANDROID_HOME till /usr/local/share/android-sdk c. Platform tool folder 3. Also, how to uninstall applications downloaded via Home Brew.
@RaghavPal4 жыл бұрын
Hi Karthik, I will plan a session for this
@lukas.smetana4 жыл бұрын
Thanks a lot, really helped!
@RaghavPal4 жыл бұрын
Glad to hear Lukáš
@lakshmikanthlucky55594 жыл бұрын
So much infomatic and explained in detail and helped me a lot.. Thank you so much sir:)
@RaghavPal4 жыл бұрын
Most welcome Lakshmikanth
@anastasiakotova48755 жыл бұрын
Thanks for the videos :) This is really important for beginners.
@RaghavPal5 жыл бұрын
You're welcome Anastasia
@SiddarthVaderYT5 жыл бұрын
@@RaghavPal sir sorry to comment randomly here. I need some help. I am not able to launch appium test from ur first appium test in java video. It is throwing security errors and write.exception. Can you please assist on how to resolve this. I have reached a dead end because of this issue
@rajalakshmisrinivasan23435 жыл бұрын
Thanks for the video.
@RaghavPal5 жыл бұрын
You're welcome Sid
@RaghavPal5 жыл бұрын
You're welcome Sid
@thizirikabyle5285 жыл бұрын
Raghav thanks a lot for the new topic of appium and good luck
@RaghavPal5 жыл бұрын
You're welcome
@Jacobreake4 жыл бұрын
i am new for here, and this videos help me much. Thank (Y)
@RaghavPal4 жыл бұрын
Glad to hear it!
@specttech99 Жыл бұрын
Hello, sir please can u do for windows ?
@RaghavPal Жыл бұрын
I will plan
@specttech99 Жыл бұрын
@@RaghavPal waiting
@lakshmibk60805 жыл бұрын
Hi Raghav, Thanks for this video, explained nicely. Any videos about Appium with c# and specflow?
@RaghavPal5 жыл бұрын
Hi Lakshmi, not yet with c# and Specflow. Will do that. You can find all here - automationstepbystep.com/
@sav64103 жыл бұрын
Hi Raghav - one question- can we use mac machine for both android and ios apps automation ? Thanks for the tutorial
@kepmari1003 жыл бұрын
Yes. You can use. Ideally you can do Android & IOS in MAC Machine. But only Android in Windows Machine, because IOS needs Xcode which only MAC provides.
@RaghavPal3 жыл бұрын
right Sathish and thanks for the help.
@KeepMyselfHumble10 ай бұрын
Hi, ive downloaded the zip folder but it doesn't seem to have android-sdk it literally only shows 'cmdline-tools' folder and even though the contents show 'sdkmanager' it doesn't seem to have "platform-tools" "platforms;android-28" I believe you may need to update your video as this version requires updates. I can't seem to get past this section.
@KeepMyselfHumble10 ай бұрын
❯ ls apkanalyzer lint resourceshrinker screenshot2 avdmanager profgen retrace sdkmanager
@RaghavPal10 ай бұрын
Yes, will do soon
@oleksiiprokofiev72454 жыл бұрын
Hello Raghav. Thanks for your lessons. While I am trying to run command to get platform tools I got an exception. Any suggestion on how to handle that?
@RaghavPal4 жыл бұрын
Hi Oleksii, although you have not sent the error message, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@oleksiiprokofiev72454 жыл бұрын
@@RaghavPal Hi Raghav. Here is my error: alexprokofiev@MacBook-Air-Alex ~ % cd /usr/local/Caskroom/android-sdk/4333796/tools/bin/ alexprokofiev@MacBook-Air-Alex bin % sdkmanager "platform-tools" "platforms;android-29" Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) at com.android.repository.api.SchemaModule.(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 5 more
@RaghavPal4 жыл бұрын
This can help stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a github.com/appium/appium-desktop/issues/1174
@fatemarangoonwala97543 жыл бұрын
Hi Raghav, I am trying to do the mobile automation using python, what all steps needed to install python or could you please help in setting up the python env. in my machine i am using macos
@RaghavPal3 жыл бұрын
Hi Fatema, I will plan a session on this
@fatemarangoonwala97543 жыл бұрын
@@RaghavPal Thankyou so much
@rishd83784 ай бұрын
Hi Sir, I am setting up ANDROID PATH on a mac - Sonoma 14. After following the steps on the bash profile, I can see the new variables created inside the .bash_profile (the bash_profile does not contain any other parameters) . However, when I try echo $ANDROID_HOME on a new terminal window, it does not return anything. I would like to understand if there is another way to set this up on new mac OS? Thanks in advance.
@RaghavPal4 ай бұрын
Shani It seems like you've followed the steps to set up the ANDROID_HOME variable in your .bash_profile file, but when you open a new terminal window, the variable is not being recognized. This suggests that the changes to the .bash_profile file are not being loaded into the new terminal session Possible causes There are a few possible reasons why this might be happening: The .bash_profile file is not being sourced correctly in the new terminal window. The ANDROID_HOME variable is not being exported correctly. There might be another configuration file overriding the settings in .bash_profile. Alternative approaches Instead of using the .bash_profile file, you can try setting up the ANDROID_HOME variable using one of the following methods: Using .zshrc file: Since you're on a Mac with Sonoma 14, which uses zsh as the default shell, you can try setting up the ANDROID_HOME variable in the .zshrc file instead. This file is similar to .bash_profile, but specific to zsh. Using ~/.profile file: Another option is to set up the ANDROID_HOME variable in the ~/.profile file, which is a more universal configuration file that is sourced by both bash and zsh. Using export command: You can try using the export command to set the ANDROID_HOME variable directly in the terminal, without modifying any configuration files. For example: export ANDROID_HOME=/path/to/android/sdk Troubleshooting steps To help you further, can you please try the following steps: Open a new terminal window and run the command echo $SHELL to confirm that you're using zsh as the default shell Check if the .bash_profile file is being sourced correctly by adding a simple echo statement at the end of the file, and then opening a new terminal window to see if the message is printed Try setting up the ANDROID_HOME variable using one of the alternative approaches mentioned above -
@rishd83784 ай бұрын
@@RaghavPal Hi Sir, thank you for getting back quickly, highly appreciated. I able to solve this with nano ~/.zshrc commands
@belevitnev5 жыл бұрын
Hi. Thanks for your efforts! I look forward to "how to connect real IOS device"
@RaghavPal5 жыл бұрын
Sure Сергій
@alexandruluca84464 жыл бұрын
Hello. Is there such a video available?
@sertacakgul21755 жыл бұрын
Thanks for this video @Raghav Pal. I hope you upload soon a video how we connect Real iOS devices on Mac OS.
@RaghavPal5 жыл бұрын
I will do Sertac
@sappanimuthubalasubramania15722 жыл бұрын
@@RaghavPal Hi Raghav, Please update the iOS device connection
@muthulakshmiramalingam61002 жыл бұрын
Hi Ragahv, I'm facing this error while installing sdk tools zsh: command not found: sdkmanager through the command :sdkmanager "platform-tools" "platforms;android-33".
@RaghavPal2 жыл бұрын
Hi Muthulakshmi, The error "zsh: command not found: sdkmanager" suggests that the sdkmanager command is not recognized by your system. This can happen if the Android SDK tools are not installed or if they are not in the system's PATH. Here are a few things you can try to resolve the issue: Make sure that the Android SDK tools are installed on your system. You can download the latest version from the Android Developers website Once the Android SDK tools are installed, add the "tools" and "platform-tools" directories to your system's PATH. On macOS and Linux, you can do this by editing your .bash_profile or .zshrc file and adding the following lines: export ANDROID_HOME=$HOME/Android/Sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools Make sure that the Appium is using the correct version of the Android SDK. You can check this by looking at the Appium settings or by running the command "sdkmanager --list" in the command prompt If you are still having the same error, try to give the full path of sdkmanager instead of just sdkmanager. It may be that sdkmanager is not in the PATH of your system If none of the above steps work, try to uninstall and then reinstall the android sdk tools, sometimes the installation gets corrupted. After following the above steps, if the problem persists, please share the error message and the output of the command "sdkmanager --list" so I can help you troubleshoot the issue further Appium uses the Android SDK to communicate with the Android emulator or device, so it is important to have the correct version of the SDK installed and configured properly
@sachishmaharjan55954 жыл бұрын
Thank you
@RaghavPal4 жыл бұрын
You're welcome
@mohamedsaliha22295 жыл бұрын
Hi Raghav, i am getting the below error while running test , org.openqa.selenium.SessionNotCreatedException: 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 'aapt' in ["/usr/local/share/android-sdk/platform-tools/aapt","/usr/local/share/android-sdk/emulator/aapt","/usr/local/share/android-sdk/tools/aapt","/usr/local/share/android-sdk/tools/bin/aapt"]. Do you have Android Build Tools installed at '/usr/local/share/android-sdk'?
@RaghavPal5 жыл бұрын
Hi Mohamed, aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Can you confirm that you have aapt.exe somewhere on your machine? There are specific directories that the script is looking in to find it. You might want to try reinstalling the Android SDK. I was reading some posts that aapt.exe may be named aapt2.exe for some SDKs. Could you check to see if that file exists on your system? You should be able to find it in: C:\Users\\AppData\Local\Android\sdk\build-tools\ If it does exist, you might be able to create a shortcut named “aapt.exe” to that file. forum.katalon.com/t/could-not-find-aapt-exe/10922/10 A user solved it using below steps: 1 I installed Android Studio and 2 installed SDK from Android Studio. export ANDROID_HOME=/Users/darya1/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools 3 Edit the configuration setting of Appium server to point to the ANDROID_HOME and JAVA_HOME.
@bhavyajain478322 күн бұрын
Hi Raghav I am facing this error after manually downloading the android sdk "zsh: command not found: sdkmanager" Please help!!
@RaghavPal22 күн бұрын
Bhavya Follow these steps to fix the error: 1. Check Android SDK Path: Ensure you downloaded the correct Android SDK tools 2. Set Environment Variable: Add this to your shell config file (`~/.zshrc`): ```bash export ANDROID_HOME=/ export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH ``` 3. Apply Changes: Run this: ```bash source ~/.zshrc ``` 4. Verify: Test if `sdkmanager` works: ```bash sdkmanager --list ``` -
@bhavyajain478319 күн бұрын
Hi @@RaghavPal No I am facing this issue while extracting platform tools folder " bhavyajain@BhavyaJains-MacBook-Pro ~ % sdkmanager "platform-tools" "build-tools;36" Warning: Errors during XML parse: Warning: Additionally, the fallback loader failed to parse the XML. Warning: Errors during XML parse: Warning: Additionally, the fallback loader failed to parse the XML. Warning: Failed to find package 'build-tools;36' "
@RaghavPal18 күн бұрын
Bhavya Here’s how to fix the issue step-by-step: ### 1. Check Installed SDK Tools - Ensure you have the Android SDK Command-Line Tools installed: - Open Android Studio → SDK Manager → SDK Tools tab. - Check if "Android SDK Command-Line Tools" is installed. ### 2. Install `platform-tools` and Correct `build-tools` - The correct version for `build-tools` is usually something like `36.0.0`. To install it: ```bash sdkmanager "platform-tools" "build-tools;36.0.0" ``` ### 3. Check SDK Manager Path - Verify the `sdkmanager` command is pointing to the correct location: ```bash which sdkmanager ``` - If it’s missing or wrong, export the correct path to your shell: ```bash export PATH=$PATH:~/Library/Android/sdk/cmdline-tools/latest/bin ``` ### 4. Fix XML Parse Error - This issue happens if `sdkmanager` cannot reach the repository. Check your internet connection and retry. - If it persists, clear the cache: ```bash rm -rf ~/.android/cache ``` ### 5. Update SDK Manager - Ensure the SDK manager is updated: ```bash sdkmanager --update ``` ### 6. Manually Install Missing Tools - If the above doesn’t work, manually download the required `platform-tools` or `build-tools` from the [Android SDK Downloads](developer.android.com/studio) page and extract them into the SDK directory. ### 7. Verify Installation - List installed packages to confirm: ```bash sdkmanager --list ``` If the problem continues, let me know
@soniaautomation76725 жыл бұрын
Hello, I am having the exact same issue like you where it cant find the path for the platform tool, and i tried like you to rewrite the " "/ double quotes but it still not finding it. can you please help? Thanks
@RaghavPal5 жыл бұрын
What is the error you are getting Sonia, Pls recheck all the steps with the video again
@rajat4494 жыл бұрын
Not able to install the Platform tool please help
@RaghavPal4 жыл бұрын
Hi Rajat, try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@shriduttpatel13505 жыл бұрын
there is an error occurring when i ran the command from android studio website i have java 12 version and error is mentioning that class not found ......... what to do now
@RaghavPal5 жыл бұрын
Hi Shridutt, Will need more details and error log to troubleshoot this. Also check this - stackoverflow.com/questions/6147241/android-app-classnotfoundexception-for-main-activity
@aakashpatel40363 жыл бұрын
it is not working my macOS Catalina it says zsh: command not found: adb
@RaghavPal3 жыл бұрын
Hi Aakash, see if this user's comment helps you Apple replaced Bash with Zsh, different shells, so I added this to the .bash_profile: export ZSH="/Users/yourname/.oh-my-zsh"
@lokeshchitturi96784 жыл бұрын
Though i add path and android_home to .bash_profile. It is getting reset when i open new terminal
@RaghavPal4 жыл бұрын
Check again, do cat .bash_profile and check
@automationra4 жыл бұрын
Hi Raghav, Is this possible that I have a real IOS device and connect to my windows PC?
@RaghavPal4 жыл бұрын
It will be very tricky, you can use TestProject for that. kzbin.info/aero/PLhW3qG5bs-L_QuqpGY-B-1ifP1j4ve3fx
@automationra4 жыл бұрын
@@RaghavPal thank you Raghav
@harishkumarm.m57014 жыл бұрын
Hi Raghav , adb devices command shows my devices in terminal.but when i run my test case to open app in intellji its displaying Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find 'adb' in ["/usr/local/share/android-sdk/platform-tools/adb","/usr/local/share/android-sdk/emulator/adb","/usr/local/share/android-sdk/tools/adb","/usr/local/share/android-sdk/tools/bin/adb"]. Do you have Android Build Tools installed at '/usr/local/share/android-sdk'? Can you please help me out to resolve this.
@RaghavPal4 жыл бұрын
Hi Harish, pls check if you have ANDROID_HOME in your env variables. This will help discuss.appium.io/t/original-error-could-not-find-adb-please-set-the-android-home-environment-variable/21528/4 stackoverflow.com/questions/51532706/an-unknown-server-side-error-occurred-while-processing-the-command-original-erro
@RaiderIQ14 жыл бұрын
Little update to install Android-sk you have to use --casi brew install --cask android-sdk
@RaghavPal4 жыл бұрын
Thanks for adding Haider
@RaiderIQ14 жыл бұрын
Welcome you helped so much and I have to help others. Thanks to you
@yiyangzhang6082 жыл бұрын
Hi There is no USB port in MBP, how to connect android mobile? Thanks.
@RaghavPal2 жыл бұрын
Can check some examples online
@antonkovalchuk8742 жыл бұрын
Good. But what about connect real iOS device to Windows and run test on it. Do you know how to do this?
@RaghavPal2 жыл бұрын
I believe, we cannot directly use iOS real device on windows, you can explore the option of using cloud device platforms like Saucelabs, Browserstack etc
@shridharait4 жыл бұрын
Hi Raghav, I have been following your video and i have got stuck running the code. im getting below error can you help me here thanks An unknown server-side error occurred while processing the command. Original error: Could not find 'aapt' in ["/usr/local/share/android-sdk/platform-tools/aapt","/usr/local/share/android-sdk/emulator/aapt","/usr/local/share/android-sdk/tools/aapt","/usr/local/share/android-sdk/tools/bin/aapt"]. Do you have Android Build Tools installed at '/usr/local/share/android-sdk'?
@RaghavPal4 жыл бұрын
Hi Shridhar, aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Can you confirm that you have aapt.exe somewhere on your machine? There are specific directories that the script is looking in to find it. You might want to try reinstalling the Android SDK. I was reading some posts that aapt.exe may be named aapt2.exe for some SDKs. Could you check to see if that file exists on your system? You should be able to find it in: C:\Users\\AppData\Local\Android\sdk\build-tools\ If it does exist, you might be able to create a shortcut named “aapt.exe” to that file. forum.katalon.com/t/could-not-find-aapt-exe/10922/10 A user solved it using below steps: 1 I installed Android Studio and 2 installed SDK from Android Studio. export ANDROID_HOME=/Users/darya1/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools 3 Edit the configuration setting of Appium server to point to the ANDROID_HOME and JAVA_HOME. A User Comment Fix For those people, who are facing issue like Encountered internal error running command: Error: Could not find 'aapt.exe' in ["C:\\Android SDK\\platform-tools\\aapt.exe" You have to download bulld-tools folder where you will find aapt and aapt2.exe.
@nitink0954294 жыл бұрын
Thanks for this wonderful tutorial. I observe below error in "appium-doctor --android" command on Mac 10.15.4 (using zsh shell). WARN AppiumDoctor ✖ adb could NOT be found at '/usr/local/Caskroom/android-sdk/platform-tools/adb'! WARN AppiumDoctor ✖ android could NOT be found at '/usr/local/Caskroom/android-sdk/tools/android'! WARN AppiumDoctor ✖ emulator could NOT be found at '/usr/local/Caskroom/android-sdk/tools/emulator'! Corrected the path of ANDROID_HOME from /usr/local/Caskroom/android-sdk to /usr/local/Caskroom/android-sdk/4333796 fixed this. Just thought of sharing.
@RaghavPal4 жыл бұрын
Thanks for sharing Nitin
@yogitabhole49744 жыл бұрын
I am getting error as "adb:command not found " after setting path and platform-tools to PATH on Mac.I set env variables.
@RaghavPal4 жыл бұрын
Hi Yogita, have you set env variables. Pls check this windowsreport.com/adb-command-not-found/ stackoverflow.com/questions/10303639/adb-command-not-found
@yogitabhole49744 жыл бұрын
@@RaghavPal Thanks a lot sir.!
@Mehul-mt7rj5 жыл бұрын
HI, this both command not working 1.brew install android-sdk 2. brew cask install android-sdk any suggestion? Both command reply command not found Thank you
@RaghavPal5 жыл бұрын
That means brew is not installed. Pls check brew.sh/
@Mehul-mt7rj5 жыл бұрын
Yes. You right Thanks for that
@Mehul-mt7rj5 жыл бұрын
I have given a path for SDK manager and the other link you show us with android versions API number in the terminal but didn't create platform-tools folder? any suggestion?
@RaghavPal5 жыл бұрын
Pls see if you get any error message on terminal. What is your java version ? java -version
@Mehul-mt7rj5 жыл бұрын
Thanks for replay. Using Java 8 this is sorted it now.
@vigneshs.m31395 жыл бұрын
Thanks for the video Raghav. I have followed the steps clearly but still, I couldn't list any device using "abd devices" command on my mac. Still its showing "command not found" Can you please help me out in this reg?
@RaghavPal5 жыл бұрын
Hi Vignesh, pls check if this is helpful stackoverflow.com/questions/17901692/set-up-adb-on-mac-os-x
@TheQA2475 жыл бұрын
@Raghav Pal - For those of us using JAVA 11, there is an error at the step where you run the command: sdkmanager "platform-tools" "platforms;android-28" Would you happen to know of a solution? StackOverflow is not very helpful (too many solutions that don't work).
@RaghavPal5 жыл бұрын
I will check online for this Pablo
@mohamedbashir77975 жыл бұрын
I am facing same issue and stack overflow was not helpful
@mohamedbashir77975 жыл бұрын
Plz make video if you find solution to this problem
@cengizalabacak84455 жыл бұрын
Same pboblem with Java 13
@sainiranjan404 жыл бұрын
I am having same issue with Java13. Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) at com.android.repository.api.SchemaModule.(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 5 more I ran "brew cask install android-platform-tools" and that installed android-platform-tools successfully but I am not able to locate on my system where it installed. @Raghav, Please confirm if above command is correct, If not, please address at your earliest convenience.
@madhesh81264 жыл бұрын
Hi Raghav, path created is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin, please help
@RaghavPal4 жыл бұрын
what is the exact issue you are facing Madhesh
@madhesh81264 жыл бұрын
@@RaghavPal followed the video step by step but after setting the echo $PATH i can see this /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin, in the video i can see framework created for python and apache maven
@RaghavPal4 жыл бұрын
Hi Madhesh, yes, so we do not change or delete existing path, we need to append the new path. In case it does not show, you can make it permanent by adding the path in .bash_profile. Can check more on this online
@madhesh81264 жыл бұрын
@@RaghavPal okay, thanks raghav
@ShubhamSharma-ir5ie3 жыл бұрын
"AWESOME"
@RaghavPal3 жыл бұрын
Thanks Shubham
@viveksuryavanshi61654 жыл бұрын
adb devices command shows my devices in terminal.. but when i run test case to open calculator in eclipse it says.. Original error: Could not find 'adb' in ["/usr/local/Caskroom/android-sdk/platform-tools/adb","/usr/local/Caskroom/android-sdk/emulator/adb","/usr/local/Caskroom/android-sdk/tools/adb","/usr/local/Caskroom/android-sdk/tools/bin/adb"]. Do you have Android Build Tools installed at '/usr/local/Caskroom/android-sdk' below is the bash profile for ref :# The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}" export PATH export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home export ANDROID_HOME=/usr/local/Caskroom/android-sdk export PATH="/usr/local/Caskroom/android-sdk/4333796/platform-tools:${PATH}" export PATH=$ANDROID_HOME/platform-tools:$PATH export PATH=$ANDROID_HOME/tools:$PATH
@RaghavPal4 жыл бұрын
Hi Vivek, pls try this Step 1: You know where your android-sdk is installed in your system if you didnt changed the location search in ProgramFiles/Android Step 2: close eclipse. Step 3: Copy adb.exe in android-sdk/platform-tools/ folder Step 4: Paste that adb.exe in android-sdk/tools/ folder Step 5: Now open eclipse go to Windows --> Preferences choose android then click browse and select android-sdk with in few minutes stackoverflow.com/questions/6361349/android-problem-eclipse-cannot-find-adb-exe
@mohamedbashir77975 жыл бұрын
sir , if I don't have android device .How can I connect android emulator to Appium ?
@RaghavPal5 жыл бұрын
Hi Moe, you will need to connect with the device and provide its properties in desired capabilities. Check this - www.guru99.com/appium-desired-capabilities.html
@anjumariyageorge36045 жыл бұрын
Getting an error saying " Could not find ' aapt' in PATH. Please set the ANDROID_HOME environment variable with the Android sdk root directory path. Please suggest a solution for this. Already done all setup explained in this video successfully.
@RaghavPal5 жыл бұрын
Hi Anju, The issue here is appium could not find aapt.exe file in the standard locations i.e. ["/usr/local/share/android-sdk/platform- tools/aapt","/usr/local/share/android-sdk/emulator/aapt","/usr/local/share/android- sdk/tools/aapt","/usr/local/share/android-sdk/tools/bin/aapt"]. Pls check these folders manually and check if you see aapt.exe. aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Please check if you have aapt.exe at some other location on your machine. Sometimes it may be named as aapt2.exe. Check for this too. There are specific directories that the script is looking in to find it. Also ensure the environment variables (ANDROID_HOME, platform_tools) are set. Check on terminal echo $ANDROID_HOME echo $PATH To make it permanent on your system use: nano ~/.bash_profile Add lines: export ANDROID_HOME=/YOUR_PATH_TO/android-sdk export PATH=$ANDROID_HOME/platform-tools:$PATH export PATH=$ANDROID_HOME/tools:$PATH Reopen terminal and check if it worked: source ~/.bash_profile
@anjugeorge76105 жыл бұрын
@@RaghavPal After running appium doctor ,iam getting errors saying adb,emulator and android could not be found.As per Appium doctor suggestion I have set PATH to all these three but still error is displayed.Whether I have to do some manual installations for this?
@RaghavPal5 жыл бұрын
Hi Anju, after you installed, did you check running appium doctor command on a new command line.
@BeataSadek5 жыл бұрын
Hello, Could you please be so kind to help me with the following problem? I run all steps from your video and all seemed to work fine except one thing: when I use Samsung device with Chrome ver.75 my test works fine, when I plugged next Android phone with Chrome above v.75, I have the following error: "Original error: Unable to automate Chrome version because it is too old for this version of Chromedriver.Chrome version on the device: Chrome/77.0.3865.92" How is this happening? I found a chromedriver for Appium (under node_modules) and changed it to one of the newest one (v.76), but it didn’t help. Then added “System.setProperty…” but it also didn’t help :/ My code: DesiredCapabilities dc = new DesiredCapabilities(); dc.setCapability(MobileCapabilityType.DEVICE_NAME, "xxx"); dc.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); dc.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome"); // System.setProperty("webdriver.chrome.driver","/Users/beatasadek/Downloads/chromedriver.exe"); AndroidDriver driver = new AndroidDriver(new URL("127.0.0.1:4723/wd/hub"),dc); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.get("facebook.com/"); I use Appium desktop on Mac OS. I will appreciate any advice on this. Thanks, Beata
@RaghavPal5 жыл бұрын
Hi, pls try this Match the ChromeDriver version to Device/emulator Webview version. Get chromedriver with respective device webview version from here github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md Then Copy the ChromeDriver to Appium esources\app ode_modules\appium ode_modules\appium-chromedriver\chromedriver\win\chromedriver.exe Now everything should work fine. If still not working, proceed to set the below capability androidCapabilities.setCapability(“chromedriverExecutable”,”/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/win/chromedriver.exe”);
@Vukobratina3 жыл бұрын
21:57 just add it like export PATH=$PATH:/usr/local/Caskroom/android-sdk/4333796/platform-tools in .bash_profile
@RaghavPal3 жыл бұрын
thanks for adding
@AshokKumar-jw5gr4 жыл бұрын
When I try to install the APK (Ex: Salesforce1) through code I face the following exception: Failure [INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]' How can we overcome this?
@RaghavPal4 жыл бұрын
Hi Ashok, looks some issue with your APK file. Can try with a diff apk
@rajvitz3 жыл бұрын
nothing works. it’s probably old video. @raghav make a proper document. still getting error android_home nor android_sdk_root was exported
@RaghavPal3 жыл бұрын
I will check and plan for it
@wendelljapzon99065 жыл бұрын
I got this error message: Failed to find package platforms:android-25
@wendelljapzon99065 жыл бұрын
Wendells-MBP:bin wendelljapzon$ sdkmanager "platform-tools" "platforms:android-28" Warning: File /Users/wendelljapzon/.android/repositories.cfg could not be loaded. Warning: Failed to find package platforms:android-28 Wendells-MBP:bin wendelljapzon$ ] 10% Computing updates...
@RaghavPal5 жыл бұрын
Hi Wendell, Have you followed the session on appium setup - Pls check - kzbin.info/aero/PLhW3qG5bs-L8npSSZD6aWdYFQ96OEduhk
@incredibleindia69872 жыл бұрын
raghavv your all videos are very good , but for Appium it has only installation in all videos nothing else
@RaghavPal2 жыл бұрын
Glad this helped
@rayton7104 жыл бұрын
So, I've actually figured out the answer to my own question, but thought if I leave it here, it may help someone else. Apple replaced Bash with Zsh, different shells, so I added this to the .bash_profile: export ZSH="/Users/yourname/.oh-my-zsh" Not tried yet, but guessing you can probably add the source paths to the .zshrc file too. _____________________________________________________________________________________ >>Even after updating the .bash_profile, I am unable to echo the $PATH or $ANDROID_HOME in a new terminal window. This is what I have: #Setting path for ANDROID_HOME export ANDROID_HOME=/usr/local/share/android-sdk #Adding path of Platform-tools folder in PATH env variable PATH="/usr/local/Caskroom/android-sdk/4333796/platform-tools:${PATH}" I copied the file path on the Mac using the info method shown, I've tried it with and without the 'export' part on the PATH and have even deleted and recreated the .bash_profile file, but still no luck, it's literally for one terminal session. Can anyone see any glaringly obvious errors? Is there anything else I can do to make this available across new sessions? Does it need to be stored anywhere else? I'm just so confused by why this is (or isn't) happening! The only way I can make it work is by running 'source .bash_profile' and then it finds the info, but shouldn't it find it automatically, isn't this why it's being set?! I'd appreciate any simple and straightforward answers please. TIA Great tutorial BTW
@RaghavPal4 жыл бұрын
Thanks a lot for sharing
@usamadogar75215 жыл бұрын
sdkmanager "platform-tools" "platforms;android-28" ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_201\bin Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
@RaghavPal5 жыл бұрын
Hi Usama, Set your JAVA_HOME env variable properly. Can check this - kzbin.info/www/bejne/hITZpZypZ8t6oqM
@killahkay21125 жыл бұрын
MANNN this is soooo Long . I just want to empty my android phone on my mac. For some reason my dash is asking for a password ... witch I am having a hard time to find on the brew site ...
@RaghavPal5 жыл бұрын
Not sure on the real issue here. Will have to check online
@riadanush3 жыл бұрын
Hey Raghav, Thanks for your tutorial video - it's really amazing! I'm seeing "Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema" in terminal when I entered "sdkmanager "platform-tools" "platforms;android-28"" also this command didn't create any additional folder in the tool. Not sure what am I missing.
@RaghavPal3 жыл бұрын
Hi Ria, Hi, 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
@remigiusl30703 жыл бұрын
@@RaghavPal Hi Raghav, Thanks for this. On Step 2, I am also facing the same issue as @Ria faced. My java version is "java 17 2021-09-14 LTS". How to resolve it?. Thanks...
@ankitnigam14874 жыл бұрын
Ankits-MacBook-Air:bin ankitnigam$ cd /Users/ankitnigam/Downloads/tools/bin Ankits-MacBook-Air:bin ankitnigam$ sdkmanager "platform-tools" "platforms;android-28" -bash: sdkmanager: command not found each tym this is visible pls tell me how to resolve
@RaghavPal4 жыл бұрын
Hi Ankit, pls check if you have sdkmanager else check your installation again
@jeelanalikhan80864 жыл бұрын
Hello Raghav, While I try to enter the command to get platform tools in the terminal I get an exception. Also I have java 15 installed in my MAC system. Can you please help as to how to handle this exception with the detail steps as you explain in your tutorial videos. Doing so would be a great help. Apple:bin nithin.easwar$ cd /usr/local/Caskroom/android-sdk/4333796/tools/bin/ Apple:bin nithin.easwar$ sdkmanager "platform-tools" "platforms;android-28" Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) at com.android.repository.api.SchemaModule.(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more
@RaghavPal4 жыл бұрын
Hi Jeelan, this can be due to Java or platform tools sdk, Can you check other user comments and solutions and try them
@jeelanalikhan80864 жыл бұрын
@@RaghavPal Hello Rahul. Sorry for late response. I'm able to set the path variable now. Thanks for the help.
@et96933 жыл бұрын
appium ios real device
@RaghavPal3 жыл бұрын
I will plan
@usamakaram51512 жыл бұрын
To all the people who are using mac OS Monterey and using Mac with M1 chip, please try the following and it will for you setup your environment variable permanently. After macOS BigSur .bashprofile doesn't work and you have to use .zprofile if zprofile isnt created then use touch .zprofile now simple do vi .zprofile to write for edit. now do the following # Setting PATH for ANDROID_HOME export ANDROID_HOME=/opt/homebrew/share/android-sdk # Adding platform-tools to PATH PATH="/opt/homebrew/Caskroom/android-sdk/4333796/platform-tools:${PATH}” Press esc :wq! Enter after that type source ~./zprofile to save the file permanently. now go to another terminal window or tab and try to echo both $ANDROID_HOME and $PATH. you should be able to get it. Hope it will help someone as it took me at least 4 hours to figure that out.
@RaghavPal2 жыл бұрын
Thanks a lot Usama, this will help a lot of people, I request everyone to add such comments, whenever you find some solutions or updates. This helps the community a lot
@BjarnervadDreier2 жыл бұрын
Hi Usama, I found the same, but used .zshenv instead of .zprofile. Do you know the difference?