I a m trying to run Android automation in Robot Framework using Appium but, the following error keeps showing up:
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not find 'adb' in ["/Applications/ADT/sdk/platform-tools/platform-tools/adb","/Applications/ADT/sdk/platform-tools/emulator/adb","/Applications/ADT/sdk/platform-tools/tools/adb","/Applications/ADT/sdk/platform-tools/tools/bin/adb"]. Do you have Android Build Tools installed at '/Applications/ADT/sdk/platform-tools'?
I have checked the installation in Android as well.
Any idea how to resolve this kind of issue?
Thank you very much.
I suspect your paths may not be set correctly. For reference, I have the following set in my bash profile:
export ANDROID_HOME=~/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$PATH:$JAVA_HOME/bin
Related
I am trying to upload symbols files to crashlytics using this command:
firebase crashlytics:symbols:upload --app="ANDROID_APP_ID" /home/user/debuginfo/testApp/1.2.0+85
But i got this error:
i Generating symbols for /home/user/debuginfo/testApp/1.2.0+85
⚠ An unknown error occurred
Error: java command failed with args:
-jar,/home/user/.cache/firebase/crashlytics/buildtools/crashlytics-buildtools-2.9.2.jar,-symbolGenerator,breakpad,-symbolFileCacheDir,/tmp/crashlytics-e00e9d25-558c-410a-b516-03fbb119fd2b/nativeSymbols/ANDROID_APP_ID/breakpad,-verbose,-generateNativeSymbols,-unstrippedLibrary,/home/user/debuginfo/testApp/1.2.0+85,-clientName,firebase-cli;crashlytics-buildtools
The problem is firebase tool did not find java command. so here is how i resolved the problem:
By updating environment variable in .zshrc file with these lines
export JAVA_HOME="/snap/android-studio/current/android-studio/jre"
export PATH="$PATH:/snap/android-studio/current/android-studio/jre/bin"
then i run this command:
source ~/.zshrc
after that firebase crashlytics:symbols:upload run without error.
I had the same issue. In my case, after I opened firebase CLI as administrator (right click=> "Run as administrator) it fixed the problem.
I am new to Ionic and created a simple application. I have installed Android Sdk. And added these Environment Variable
I am trying to build my app using cordova build commandcommand but getting this error :-
Error: cmd: Command failed with exit code ENOENT
I am been searching whole day for the solution and finally ended up here.
For linux, you'll also need to add these lines in ~/.bashrc file
export ANDROID_HOME='/home/your_username/Android/Sdk'
export ANDROID_SDK_ROOT='/home/your_username/Android/Sdk'
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
Then check if android target is read with cordova requirements first.
Reference for Mac OS:
https://gist.github.com/kristopherjohnson/7568583
Command should be ionic platform add android and not cordova platform add android
I was getting the same error ...
In my case, it was occurring because of the changes in ionic CLI...
Now you need to run 'ionic cordova platform add android' (or ios) but the extension dont run this command yet...
I just insert 'cordova' in the source code of plugin (try to search the funcions that run the commands that start with 'ionic' and have to run 'cordova' together'
In the macOS, you find the source code at:
~/.vscode/extensions/vsmobile.cordova-tools-1.2.7/out/src/debugger/cordovaDebugAdapter.js
In the Windows, the path is:
C:\Users\yourusername\.vscode\extensions\vsmobile.cordova-tools-1.2.7\out\src\debugger\cordovaDebugAdapter.js
It worked for me...
You can read about how Calabash-Android is searching for an Android SDK and how you can help here
error when trying to run calabash-android commands. i've downloaded android SDK and unzipped it.
here is the content of my .bash_profile:
export GEM_HOME=~/.calabash
export GEM_PATH=~/.calabash
export PATH="$PATH:$HOME/.calabash/bin"
export ANDROID_HOME="$PATH:$HOME/Downloads/android-sdk-macosx/“
Note that I added the .bash_profile myself.
u have to type export ANDROID_HOME=path/to/sdk inside console. I have same issue in Ubuntu where I have to type it ,ever i restart terminal. Something is wrong with saving Global Variables inside a bash script.
I'm trying to build an apk from my phonegap project. When I run phonegap build android I get Error: EPERM, operation not permitted error so I tried sudo phonegap build android but I get this error:
[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]
When I run sudo android I get the android manager so I have correctly exported android path. What is the problem then?
This is part of my .profile file:
export ANDROID_HOME=/Users/Iman/Documents/SDKs/android-sdk-macosx
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
For OSX:
export ANDROID_HOME=/<installation location>/android-sdk-macosx
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Reference the Installation guide here: http://spring.io/guides/gs/android/
There could be a problem with my configuration, but I cannot figure out what's wrong. I am trying to get appium set up on a Mac for automated testing.
I am running this command:
./reset.sh --android --verbose
I always fail on this step:
* Building Android bootstrap
Running "buildAndroidBootstrap" task
Fatal error: Error finding ant binary, is it on your path?
---- FAILURE: reset.sh exited with status 1 ----
My path is as follows:
# Android and appium config
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
What am I doing wrong? Is my path missing something crucial? Googling to try and find out what the ant library is hasn't yielded me much results - what is it? Any help appreciated.
Turns out ant is an apache tool, without which reset.sh will fail for Android. Installing ant with brew fixed the problem.