Appium不支持Android 7.1
我正在Windows 7中使用Appium 1.4.16版 当我尝试将Android与OS 7.1连接时出现以下错误Appium不支持Android 7.1,android,appium,android-7.1-nougat,Android,Appium,Android 7.1 Nougat,我正在Windows 7中使用Appium 1.4.16版 当我尝试将Android与OS 7.1连接时出现以下错误 A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "C:\Users\Devendran\Downloads\Android_SDK\platform-tools\adb.exe -s 84B7N16411007687 in
A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "C:\Users\Devendran\Downloads\Android_SDK\platform-tools\adb.exe -s 84B7N16411007687 install "C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk""
Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.]
) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 19.02 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'Wipro-Laptop', ip: '192.168.0.230', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_05'
Driver info: io.appium.java_client.android.AndroidDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:36)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:114)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:132)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:92)
at StartApplication.main(StartApplication.java:42)
Exception in thread "main" java.lang.NullPointerException
at StartApplication.main(StartApplication.java:65)
无法创建新会话。(原始错误:命令失败:C:\Windows\system32\cmd.exe/s/C“C:\Users\Devendran\Downloads\Android\u SDK\platform tools\adb.exe-s 84B7N16411007687安装“C:\Program Files(x86)\Appium\node\u modules\Appium\build\settings\u apk\settings\u apk\u apk-debug.apk”
未能安装C:\Program Files(x86)\Appium\node\u modules\Appium\build\settings\u apk\settings\u apk-debug.apk:失败[安装失败\u已存在:尝试在不首先卸载的情况下重新安装io.Appium.settings。]
)(警告:服务器未提供任何stacktrace信息)
命令持续时间或超时:19.02秒
构建信息:版本:“2.53.1”,修订版:“a36b8b1”,时间:“2016-06-30 17:37:03”
系统信息:主机:“Wipro笔记本电脑”,ip:'192.168.0.230',os.name:'Windows 7',os.arch:'amd64',os.version:'6.1',java.version:'1.8.0_05'
驱动程序信息:io.appium.java_client.android.AndroidDriver
位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
位于java.lang.reflect.Constructor.newInstance(Constructor.java:408)
位于org.openqa.selenium.remote.ErrorHandler.CreateTrowable(ErrorHandler.java:206)
位于org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
位于org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
在io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
在io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
位于io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
位于org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
位于org.openqa.selenium.remote.RemoteWebDriver。(RemoteWebDriver.java:131)
位于org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java:144)
位于io.appium.java_client.DefaultGenericMobileDriver。(DefaultGenericMobileDriver.java:36)
位于io.appium.java_client.AppiumDriver。(AppiumDriver.java:114)
位于io.appium.java_client.AppiumDriver。(AppiumDriver.java:132)
位于io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:92)
位于StartApplication.main(StartApplication.java:42)
线程“main”java.lang.NullPointerException中出现异常
位于StartApplication.main(StartApplication.java:65)
有人能帮忙吗。这是由最近修复的旧错误引起的。 您需要做的是将Appium更新到最新版本并重新启动服务器
此处的说明:来自Appium的日志: