我一直在尝试使用 selendroid 进行工作,但我无法让独立运行。我一直在尝试运行命令“java -jar selendroid-standalone-0.15.0-with-dependencies.jar -app selendroid-test-app-0.14.0.apk”。但我只是不断收到“严重:错误构建服务器:在 Android SDK 中找不到命令'aapt'......”。我已经引用了This,但它没有帮助。
Java 和 Android SDK 的路径
命令提示符中的输出
才发现图有点小。。。
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@816f27d[
port=4444
timeoutEmulatorStart=300000
supportedApps=[selendroid-test-app-0.15.0.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=<null>
keystorePassword=<null>
keystoreAlias=<null>
emulatorOptions=<null>
keepEmulator=false
registrationUrl=<null>
proxy=<null>
serverHost=<null>
keepAdbAlive=false
maxSession=5
maxInstances=5
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=<null>
]
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher launchServer
SEVERE: Error building server: Command 'aapt' was not found inside the Android SDK. Please update to the latest development tools and try again.
如果我遗漏了任何信息,请告诉我。
谢谢
编辑:这是最新的