如何设置ANDROID_HOME环境变量在Ubuntu 16.04
我同时用appium如何设置ANDROID_HOME环境变量在Ubuntu 16.04
mvn -Dtest=SavedPhotosTest test -DFILEPATH="sample.apk"
An unknown server-side error occurred while processing the command. Original error: packageAndLaunchActivityFromManifest failed. Original error: Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path. (WARNING: The server did not provide any stacktrace information)
我已经设置了ANDROID_HOME在我的.bashrc已经
运行Java移动自动化测试用例面临着这样的错误export ANDROID_HOME=/home/user/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools
appium上的另一终端
配置还运行:
IntelliJ IDE --> ideaIC-2017.2.4 Android-studio --> android-studio-ide-162.4069837-linux appium --> 1.7.1
我已经尝试以下链接:
https://discuss.appium.io/t/error-could-not-find-aapt/671/5 Could not find aapt with appium server
我得到同样的问题。 Appium无法找到ANDROID_HOME env变量。 在我的情况下,这个问题背后的原因是我在我的linux机器上运行ipod sudo访问。如果您使用root权限运行,请尝试在没有它的情况下运行。
在你的'$ ANDROID_HOME'中尝试命令'find -name aapt',你会发现它在'build-tools/ /'中。 –
嘿@LymZoy它是这样的回报./build-tools/26.0.2/aapt。该怎么做? –
将'/ 26.0.2'附加到'$ PATH'变量中的'$ ANDROID_HOME/build-tools'。 –