I have the following configuration. It seems there is no problem but when I run calabash-android it gives the error:
我有以下配置。似乎没有问题但是当我运行calabash-android时它会给出错误:
~ calabash-android run ~/Projects/android-automation/app-debug.apk Could not find an Android SDK please make sure it is installed. You can read about how Calabash-Android is searching for an Android SDK and how you can help here: https://github.com/calabash/calabash-android/blob/master/documentation/installation.md#prerequisites
my configuration as follows:
我的配置如下:
~ echo $PATH /usr/local/bin /usr/local/Cellar/ /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Users/mesutgunes/Android/sdk/platform-tools /Users/mesutgunes/Android/sdk/tools ~ ~ echo $ANDROID_HOME /Users/mesutgunes/Android/sdk ~ ~ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/1.8.0_45-b14/Contents/Home/bin/java ~ ~ java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) ~ ~ ruby -v ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] ~
I am using OS X Yosemite, having this error after I guess an iOS update. It was fine before.
我正在使用OS X Yosemite,在我猜iOS更新后出现此错误。之前很好。
3 个解决方案
#1
0
Calabash-Android behaves a bit unexpected when searching for the Android SDK tools. It will not use the $ANDROID_HOME env variable if it does not contain the right executables in the right directories. You should ensure that the ANDROID SDK is downloaded from the official source, and that the directory /Users/mesutgunes/Android/sdk
contains a folder platform-tools/adb
. Use run -v
to turn on verbose mode.
Calabash-Android在搜索Android SDK工具时表现得有些意外。如果它在右侧目录中不包含正确的可执行文件,则不会使用$ ANDROID_HOME env变量。您应确保从官方来源下载ANDROID SDK,并且目录/ Users / mesutgunes / Android / sdk包含文件夹platform-tools / adb。使用run -v打开详细模式。
#2
0
Downgrading JDK to 1.7 solved my problem and java_home is as following:
将JDK降级为1.7解决了我的问题,java_home如下:
set JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
#3
0
Your calabash-android setup is incomplete, kindly install Java SDK and Android SDK.
您的calabash-android设置不完整,请安装Java SDK和Android SDK。
Java SDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Java SDK:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Android SDK: https://developer.android.com/sdk/index.html
Android SDK:https://developer.android.com/sdk/index.html
Step 1: Download and install java & android sdk.
第1步:下载并安装java和android sdk。
Step 2: Set JAVA_HOME & ANDROID_HOME in the system variable. (Full description here: https://github.com/calabash/calabash-android/blob/master/documentation/installation.md)
第2步:在系统变量中设置JAVA_HOME和ANDROID_HOME。 (完整描述:https://github.com/calabash/calabash-android/blob/master/documentation/installation.md)
Step 3: Add java bin folder & android bin foler to system variable 'PATH'
第3步:将java bin文件夹和android bin foler添加到系统变量'PATH'
Then run,
calabash-android run yourfile.apk
#1
0
Calabash-Android behaves a bit unexpected when searching for the Android SDK tools. It will not use the $ANDROID_HOME env variable if it does not contain the right executables in the right directories. You should ensure that the ANDROID SDK is downloaded from the official source, and that the directory /Users/mesutgunes/Android/sdk
contains a folder platform-tools/adb
. Use run -v
to turn on verbose mode.
Calabash-Android在搜索Android SDK工具时表现得有些意外。如果它在右侧目录中不包含正确的可执行文件,则不会使用$ ANDROID_HOME env变量。您应确保从官方来源下载ANDROID SDK,并且目录/ Users / mesutgunes / Android / sdk包含文件夹platform-tools / adb。使用run -v打开详细模式。
#2
0
Downgrading JDK to 1.7 solved my problem and java_home is as following:
将JDK降级为1.7解决了我的问题,java_home如下:
set JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
#3
0
Your calabash-android setup is incomplete, kindly install Java SDK and Android SDK.
您的calabash-android设置不完整,请安装Java SDK和Android SDK。
Java SDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Java SDK:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Android SDK: https://developer.android.com/sdk/index.html
Android SDK:https://developer.android.com/sdk/index.html
Step 1: Download and install java & android sdk.
第1步:下载并安装java和android sdk。
Step 2: Set JAVA_HOME & ANDROID_HOME in the system variable. (Full description here: https://github.com/calabash/calabash-android/blob/master/documentation/installation.md)
第2步:在系统变量中设置JAVA_HOME和ANDROID_HOME。 (完整描述:https://github.com/calabash/calabash-android/blob/master/documentation/installation.md)
Step 3: Add java bin folder & android bin foler to system variable 'PATH'
第3步:将java bin文件夹和android bin foler添加到系统变量'PATH'
Then run,
calabash-android run yourfile.apk