问答 AppCrawler 新手求助大神,在看思寒老师讲的 AppCrawler 课程,本地操作运行 example.yml 文件时,报错 Exception in thread "main" java.util.NoSuchElementException: last of empty ListBuffer

小九 · 2018年12月09日 · 最后由 小九 回复于 2018年12月13日 · 3072 次阅读

环境:appcrawler v2.1.3 , Appium1.9.1 , java1.8.0_73
运行命令:java -jar appcrawler-2.1.3.jar -c example.yml
现象:app 可以启动成功,出现弹窗后 报错,Exception in thread "main" java.util.NoSuchElementException: last of empty ListBuffer

appium-sever-log 日志文件:
[info] [35m[Appium][39m Welcome to Appium v1.9.1
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","reuse":3,"appium":"http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},capabilities:{desiredCapabilities:{app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,reuse:3,appium:http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}}[39m"
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","reuse":3,"appium":"http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},{},{desiredCapabilities:{app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,reuse:3,appium:http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}"]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1544356956695 (20:02:36 GMT+0800 (中国标准时间))
[info] [35m[Appium][39m Could not parse W3C capabilities: 'deviceName' can't be blank
[info] [35m[Appium][39m Trying to fix W3C capabilities by merging them with JSONWP caps
[warn] [35m[BaseDriver][39m The capabilities ["app","appPackage","reuse","appium","noReset","dontStopAppOnReset","deviceName","launchTimeout","appActivity","androidInstallTimeout","newCommandTimeout","autoLaunch","platformVersion","automationName","autoWebview"] are not standard capabilities and should have an extension prefix
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[info] [35m[Appium][39m Creating new AndroidUiautomator2Driver (v1.19.0) session
[info] [35m[Appium][39m Capabilities:
[info] [35m[Appium][39m platformName: Android
[info] [35m[Appium][39m app: D:\dqgpro.apk
[info] [35m[Appium][39m appPackage: com.diqiugang.c
[info] [35m[Appium][39m reuse: 3
[info] [35m[Appium][39m appium: http://127.0.0.1:4723/wd/hub
[info] [35m[Appium][39m noReset: true
[info] [35m[Appium][39m dontStopAppOnReset: true
[info] [35m[Appium][39m deviceName: GWY0217207001917
[info] [35m[Appium][39m launchTimeout: 120000
[info] [35m[Appium][39m appActivity:
[info] [35m[Appium][39m androidInstallTimeout: 180000
[info] [35m[Appium][39m newCommandTimeout: 120
[info] [35m[Appium][39m autoLaunch: true
[info] [35m[Appium][39m platformVersion:
[info] [35m[Appium][39m automationName: uiautomator2
[info] [35m[Appium][39m autoWebview: false
[debug] [35m[BaseDriver][39m W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"app":"D:\dqgpro.apk","ap... were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by appium: reuse, appium.
[info] [35m[BaseDriver][39m Session created with session id: 8d813c43-0ca9-4e67-b723-8032afc4fbc1
[info] [35m[BaseDriver][39m Using local app 'D:\dqgpro.apk'
[debug] [35m[UiAutomator2][39m Checking whether app is actually present[info] [35m[AndroidDriver][39m Java version is: 1.8.0_73
[info] [35m[ADB][39m Checking whether adb is present
[info] [35m[ADB][39m Found 29 'build-tools' folders under 'D:\android\android-sdk-windows' (newest first):
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/28.0.3
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/28.0.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/28.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/28.0.0
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/28.0.0-preview
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/27.0.3
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/27.0.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/27.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/27.0.0
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/26.0.3
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/26.0.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/26.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/26.0.0
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/26.0.0-preview
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/25.0.3
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/25.0.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/25.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/25.0.0
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/24.0.3
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/24.0.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/24.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/24.0.0
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/23.0.3
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/23.0.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/23.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/22.0.1
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/21.1.2
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/20.0.0
[info] [35m[ADB][39m D:/android/android-sdk-windows/build-tools/19.1.0
[info] [35m[ADB][39m Using adb.exe from D:\android\android-sdk-windows\platform-tools\adb.exe
[info] [35m[AndroidDriver][39m Retrieving device list
[debug] [35m[ADB][39m Trying to find a connected android device
[debug] [35m[ADB][39m Getting connected devices...[debug] [35m[ADB][39m 0 device(s) connected
[debug] [35m[ADB][39m Could not find devices, restarting adb server...
[debug] [35m[ADB][39m Restarting adb
[debug] [35m[ADB][39m Killing adb server on port 5037[debug] [35m[ADB][39m Getting connected devices...[debug] [35m[ADB][39m 1 device(s) connected
[info] [35m[AndroidDriver][39m Using device: GWY0217207001917
[debug] [35m[ADB][39m Setting device id to GWY0217207001917
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.sdk'
[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 24
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[AndroidDriver][39m Parsing package and activity from app manifest
[info] [35m[ADB][39m Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in D:\android\android-sdk-windows\platform-tools\apkanalyzer.bat,D:\android\android-sdk-windows\emulator\apkanalyzer.bat,D:\android\android-sdk-windows\tools\apkanalyzer.bat,D:\android\android-sdk-windows\tools\bin\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.0-preview\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.0-preview\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\23.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\23.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\23.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\22.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\21.1.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\20.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\19.1.0\apkanalyzer.bat. Do you have the Android SDK installed at 'D:\android\android-sdk-windows'?
[info] [35m[ADB][39m Checking whether aapt is present
[info] [35m[ADB][39m Using aapt.exe from D:\android\android-sdk-windows\build-tools\28.0.3\aapt.exe
[info] [35m[ADB][39m Extracting package and launch activity from manifest
[info] [35m[ADB][39m Package name: 'com.diqiugang.c'
[info] [35m[ADB][39m Main activity name: 'com.diqiugang.c.ui.splash.SplashActivity'
[debug] [35m[AndroidDriver][39m Parsed package and activity are: com.diqiugang.c/com.diqiugang.c.ui.splash.SplashActivity
[info] [35m[ADB][39m Getting device platform version
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.release'[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 7.0
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm size'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm density'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.model'
[debug] [35m[ADB][39m Current device property 'ro.product.model': MHA-AL00
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.manufacturer'[debug] [35m[ADB][39m Current device property 'ro.product.manufacturer': HUAWEI
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am force-stop io.appium.uiautomator2.server'[debug] [35m[ADB][39m Checking app cert for C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[info] [35m[ADB][39m Using apksigner.bat from D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat
[debug] [35m[ADB][39m Starting 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat' with args '["verify","--print-certs","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk"]'[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: 707bc2493ea5b0267dc10a9bd4cedbab5431976f13274cdd045d93470179556d
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: b8db0b11cec13cc7574a7d62f383ec16c0d275ee
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: 4fcd3b10d1e80a20bbd28758c8a3e19b
[debug] [35m[ADB][39m WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [35m[ADB][39m WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [35m[ADB][39m
[debug] [35m[ADB][39m 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is not signed with debug cert.
[info] [35m[ADB][39m Checking whether zipalign is present
[info] [35m[ADB][39m Using zipalign.exe from D:\android\android-sdk-windows\build-tools\28.0.3\zipalign.exe
[debug] [35m[ADB][39m C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is already zip-aligned. Doing nothing
[debug] [35m[ADB][39m Signing 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' with default cert
[debug] [35m[ADB][39m Starting 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat' with args '["sign","--key","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8","--cert","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk"]'[warn] [35m[ADB][39m Got an error during apksigner execution: Command 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat sign --key 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk'' exited with code 1
[warn] [35m[ADB][39m apksigner stderr: Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] [35m[ADB][39m at java.nio.file.Files.move(Files.java:1395)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:342)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
[warn] [35m[ADB][39m
[warn] [35m[ADB][39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat sign --key 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk'' exited with code 1; StdErr: Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] [35m[ADB][39m at java.nio.file.Files.move(Files.java:1395)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:342)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
[warn] [35m[ADB][39m
[debug] [35m[ADB][39m Resigning apk.
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session
[debug] [35m[JSONWP Proxy][39m Matched '/' to command name 'deleteSession'
[warn] [35m[UiAutomator2][39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am force-stop com.diqiugang.c'[debug] [35m[ADB][39m Removing forwarded port socket connection: 8200
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200'
[warn] [35m[UiAutomator2][39m Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1544356965473 (20:02:45 GMT+0800 (中国标准时间))
[debug] [35m[W3C][39m Encountered internal error running command: Error: Could not sign with default certificate. Original error Command 'F:\jdk1.8\bin\java.exe -jar 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\jars\sign.jar' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' --override' exited with code 1
[debug] [35m[W3C][39m at ADB.callee$0$0$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-signing.js:109:13)
[debug] [35m[W3C][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke as _invoke
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [35m[W3C][39m at run (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:75:1)
[debug] [35m[W3C][39m at C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:92:1
[debug] [35m[W3C][39m at flush (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules_microtask.js:18:1)
[debug] [35m[W3C][39m at process._tickCallback (internal/process/next_tick.js:61:11)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m8798 ms - 2657[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","reuse":3,"appium":"http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},capabilities:{desiredCapabilities:{app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,reuse:3,appium:http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}}[39m"
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","reuse":3,"appium":"http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},{},{desiredCapabilities:{app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,reuse:3,appium:http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}"]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1544356980743 (20:03:00 GMT+0800 (中国标准时间))
[info] [35m[Appium][39m Could not parse W3C capabilities: 'deviceName' can't be blank
[info] [35m[Appium][39m Trying to fix W3C capabilities by merging them with JSONWP caps
[warn] [35m[BaseDriver][39m The capabilities ["app","appPackage","reuse","appium","noReset","dontStopAppOnReset","deviceName","launchTimeout","appActivity","androidInstallTimeout","newCommandTimeout","autoLaunch","platformVersion","automationName","autoWebview"] are not standard capabilities and should have an extension prefix
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[info] [35m[Appium][39m Creating new AndroidUiautomator2Driver (v1.19.0) session
[info] [35m[Appium][39m Capabilities:
[info] [35m[Appium][39m platformName: Android
[info] [35m[Appium][39m app: D:\dqgpro.apk
[info] [35m[Appium][39m appPackage: com.diqiugang.c
[info] [35m[Appium][39m reuse: 3
[info] [35m[Appium][39m appium: http://127.0.0.1:4723/wd/hub
[info] [35m[Appium][39m noReset: true
[info] [35m[Appium][39m dontStopAppOnReset: true
[info] [35m[Appium][39m deviceName: GWY0217207001917
[info] [35m[Appium][39m launchTimeout: 120000
[info] [35m[Appium][39m appActivity:
[info] [35m[Appium][39m androidInstallTimeout: 180000
[info] [35m[Appium][39m newCommandTimeout: 120
[info] [35m[Appium][39m autoLaunch: true
[info] [35m[Appium][39m platformVersion:
[info] [35m[Appium][39m automationName: uiautomator2
[info] [35m[Appium][39m autoWebview: false
[debug] [35m[BaseDriver][39m W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"app":"D:\dqgpro.apk","ap... were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by appium: reuse, appium.
[info] [35m[BaseDriver][39m Session created with session id: 5dc167fd-ad5f-4a3d-8105-0773cc2ddf67
[info] [35m[BaseDriver][39m Using local app 'D:\dqgpro.apk'
[debug] [35m[UiAutomator2][39m Checking whether app is actually present[info] [35m[AndroidDriver][39m Java version is: 1.8.0_73
[info] [35m[AndroidDriver][39m Retrieving device list
[debug] [35m[ADB][39m Trying to find a connected android device
[debug] [35m[ADB][39m Getting connected devices...
[debug] [35m[ADB][39m 1 device(s) connected
[info] [35m[AndroidDriver][39m Using device: GWY0217207001917
[debug] [35m[ADB][39m Setting device id to GWY0217207001917
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.sdk'[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 24
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[AndroidDriver][39m Parsing package and activity from app manifest
[info] [35m[ADB][39m Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in D:\android\android-sdk-windows\platform-tools\apkanalyzer.bat,D:\android\android-sdk-windows\emulator\apkanalyzer.bat,D:\android\android-sdk-windows\tools\apkanalyzer.bat,D:\android\android-sdk-windows\tools\bin\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\28.0.0-preview\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\27.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\26.0.0-preview\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\25.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\24.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\23.0.3\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\23.0.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\23.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\22.0.1\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\21.1.2\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\20.0.0\apkanalyzer.bat,D:\android\android-sdk-windows\build-tools\19.1.0\apkanalyzer.bat. Do you have the Android SDK installed at 'D:\android\android-sdk-windows'?
[info] [35m[ADB][39m Extracting package and launch activity from manifest
[info] [35m[ADB][39m Package name: 'com.diqiugang.c'
[info] [35m[ADB][39m Main activity name: 'com.diqiugang.c.ui.splash.SplashActivity'
[debug] [35m[AndroidDriver][39m Parsed package and activity are: com.diqiugang.c/com.diqiugang.c.ui.splash.SplashActivity
[info] [35m[ADB][39m Getting device platform version
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.release'
[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 7.0
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm size'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm density'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.model'
[debug] [35m[ADB][39m Current device property 'ro.product.model': MHA-AL00
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.manufacturer'[debug] [35m[ADB][39m Current device property 'ro.product.manufacturer': HUAWEI
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am force-stop io.appium.uiautomator2.server'[debug] [35m[ADB][39m Checking app cert for C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[debug] [35m[ADB][39m Starting 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat' with args '["verify","--print-certs","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk"]'[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: 707bc2493ea5b0267dc10a9bd4cedbab5431976f13274cdd045d93470179556d
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: b8db0b11cec13cc7574a7d62f383ec16c0d275ee
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: 4fcd3b10d1e80a20bbd28758c8a3e19b
[debug] [35m[ADB][39m WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [35m[ADB][39m WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [35m[ADB][39m
[debug] [35m[ADB][39m 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is not signed with debug cert.
[debug] [35m[ADB][39m C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is already zip-aligned. Doing nothing
[debug] [35m[ADB][39m Signing 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' with default cert
[debug] [35m[ADB][39m Starting 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat' with args '["sign","--key","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8","--cert","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk"]'[warn] [35m[ADB][39m Got an error during apksigner execution: Command 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat sign --key 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk'' exited with code 1
[warn] [35m[ADB][39m apksigner stderr: Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] [35m[ADB][39m at java.nio.file.Files.move(Files.java:1395)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:342)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
[warn] [35m[ADB][39m
[warn] [35m[ADB][39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat sign --key 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk'' exited with code 1; StdErr: Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] [35m[ADB][39m at java.nio.file.Files.move(Files.java:1395)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:342)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
[warn] [35m[ADB][39m
[debug] [35m[ADB][39m Resigning apk.[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session
[debug] [35m[JSONWP Proxy][39m Matched '/' to command name 'deleteSession'
[warn] [35m[UiAutomator2][39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am force-stop com.diqiugang.c'[debug] [35m[ADB][39m Removing forwarded port socket connection: 8200
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200'
[warn] [35m[UiAutomator2][39m Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1544356984992 (20:03:04 GMT+0800 (中国标准时间))
[debug] [35m[W3C][39m Encountered internal error running command: Error: Could not sign with default certificate. Original error Command 'F:\jdk1.8\bin\java.exe -jar 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\jars\sign.jar' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' --override' exited with code 1
[debug] [35m[W3C][39m at ADB.callee$0$0$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-signing.js:109:13)
[debug] [35m[W3C][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke as _invoke
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [35m[W3C][39m at run (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:75:1)
[debug] [35m[W3C][39m at C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:92:1
[debug] [35m[W3C][39m at flush (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules_microtask.js:18:1)
[debug] [35m[W3C][39m at process._tickCallback (internal/process/next_tick.js:61:11)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m4252 ms - 2657[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","reuse":3,"appium":"http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:com.diqiugang.c.ui.splash.SplashActivity,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},capabilities:{desiredCapabilities:{app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,reuse:3,appium:http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:com.diqiugang.c.ui.splash.SplashActivity,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},alwaysMatch:{[39m"
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","reuse":3,"appium":"http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:com.diqiugang.c.ui.splash.SplashActivity,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},{},{desiredCapabilities:{app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,reuse:3,appium:http://127.0.0.1:4723/wd/hub,noReset:true,dontStopAppOnReset:true,deviceName:GWY0217207001917,launchTimeout:120000,appActivity:com.diqiugang.c.ui.splash.SplashActivity,androidInstallTimeout:180000,newCommandTimeout:120,autoLaunch:true,platformVersion:,automationName:uiautomator2,autoWebview:false,platformName:Android},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}"]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1544357251718 (20:07:31 GMT+0800 (中国标准时间))
[info] [35m[Appium][39m Could not parse W3C capabilities: 'deviceName' can't be blank
[info] [35m[Appium][39m Trying to fix W3C capabilities by merging them with JSONWP caps
[warn] [35m[BaseDriver][39m The capabilities ["app","appPackage","reuse","appium","noReset","dontStopAppOnReset","deviceName","launchTimeout","appActivity","androidInstallTimeout","newCommandTimeout","autoLaunch","platformVersion","automationName","autoWebview"] are not standard capabilities and should have an extension prefix
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[info] [35m[Appium][39m Creating new AndroidUiautomator2Driver (v1.19.0) session
[info] [35m[Appium][39m Capabilities:
[info] [35m[Appium][39m platformName: Android
[info] [35m[Appium][39m app: D:\dqgpro.apk
[info] [35m[Appium][39m appPackage: com.diqiugang.c
[info] [35m[Appium][39m reuse: 3
[info] [35m[Appium][39m appium: http://127.0.0.1:4723/wd/hub
[info] [35m[Appium][39m noReset: true
[info] [35m[Appium][39m dontStopAppOnReset: true
[info] [35m[Appium][39m deviceName: GWY0217207001917
[info] [35m[Appium][39m launchTimeout: 120000
[info] [35m[Appium][39m appActivity: com.diqiugang.c.ui.splash.SplashActivity
[info] [35m[Appium][39m androidInstallTimeout: 180000
[info] [35m[Appium][39m newCommandTimeout: 120
[info] [35m[Appium][39m autoLaunch: true
[info] [35m[Appium][39m platformVersion:
[info] [35m[Appium][39m automationName: uiautomator2
[info] [35m[Appium][39m autoWebview: false
[debug] [35m[BaseDriver][39m W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"app":"D:\dqgpro.apk","ap... were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by appium: reuse, appium.
[info] [35m[BaseDriver][39m Session created with session id: 4ee47cf0-424a-485e-8d92-6c222d318c32
[info] [35m[BaseDriver][39m Using local app 'D:\dqgpro.apk'
[debug] [35m[UiAutomator2][39m Checking whether app is actually present[info] [35m[AndroidDriver][39m Java version is: 1.8.0_73
[info] [35m[AndroidDriver][39m Retrieving device list
[debug] [35m[ADB][39m Trying to find a connected android device
[debug] [35m[ADB][39m Getting connected devices...
[debug] [35m[ADB][39m 1 device(s) connected
[info] [35m[AndroidDriver][39m Using device: GWY0217207001917
[debug] [35m[ADB][39m Setting device id to GWY0217207001917
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.sdk'
[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 24
[debug] [35m[ADB][39m Device API level: 24
[info] [35m[ADB][39m Getting device platform version
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.release'
[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 7.0
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm size'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm density'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.model'
[debug] [35m[ADB][39m Current device property 'ro.product.model': MHA-AL00
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.manufacturer'[debug] [35m[ADB][39m Current device property 'ro.product.manufacturer': HUAWEI
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am force-stop io.appium.uiautomator2.server'[debug] [35m[ADB][39m Checking app cert for C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[debug] [35m[ADB][39m Starting 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat' with args '["verify","--print-certs","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk"]'[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: 707bc2493ea5b0267dc10a9bd4cedbab5431976f13274cdd045d93470179556d
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: b8db0b11cec13cc7574a7d62f383ec16c0d275ee
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: 4fcd3b10d1e80a20bbd28758c8a3e19b
[debug] [35m[ADB][39m WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [35m[ADB][39m WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
[debug] [35m[ADB][39m
[debug] [35m[ADB][39m 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is not signed with debug cert.
[debug] [35m[ADB][39m C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' is already zip-aligned. Doing nothing
[debug] [35m[ADB][39m Signing 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' with default cert
[debug] [35m[ADB][39m Starting 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat' with args '["sign","--key","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8","--cert","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem","C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk"]'[warn] [35m[ADB][39m Got an error during apksigner execution: Command 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat sign --key 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk'' exited with code 1
[warn] [35m[ADB][39m apksigner stderr: Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] [35m[ADB][39m at java.nio.file.Files.move(Files.java:1395)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:342)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
[warn] [35m[ADB][39m
[warn] [35m[ADB][39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command 'D:\android\android-sdk-windows\build-tools\28.0.3\apksigner.bat sign --key 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk'' exited with code 1; StdErr: Exception in thread "main" java.nio.file.AccessDeniedException: C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] [35m[ADB][39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] [35m[ADB][39m at java.nio.file.Files.move(Files.java:1395)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:342)
[warn] [35m[ADB][39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
[warn] [35m[ADB][39m
[debug] [35m[ADB][39m Resigning apk.
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session
[debug] [35m[JSONWP Proxy][39m Matched '/' to command name 'deleteSession'
[warn] [35m[UiAutomator2][39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am force-stop com.diqiugang.c'[debug] [35m[ADB][39m Removing forwarded port socket connection: 8200
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200'
[warn] [35m[UiAutomator2][39m Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward --remove tcp:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1544357256086 (20:07:36 GMT+0800 (中国标准时间))
[debug] [35m[W3C][39m Encountered internal error running command: Error: Could not sign with default certificate. Original error Command 'F:\jdk1.8\bin\java.exe -jar 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\jars\sign.jar' 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.18.0.apk' --override' exited with code 1
[debug] [35m[W3C][39m at ADB.callee$0$0$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-signing.js:109:13)
[debug] [35m[W3C][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke as _invoke
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [35m[W3C][39m at run (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:75:1)
[debug] [35m[W3C][39m at C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:92:1
[debug] [35m[W3C][39m at flush (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules_microtask.js:18:1)
[debug] [35m[W3C][39m at process._tickCallback (internal/process/next_tick.js:61:11)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m4371 ms - 2657[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"appActivity":"com.diqiugang.c.ui.splash.SplashActivity","app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","appium":"http://127.0.0.1:4723/wd/hub,noReset:true,autoLaunch:true,platformName:Android,fullReset:false,deviceName:demo},requiredCapabilities:{},capabilities:{desiredCapabilities:{appActivity:com.diqiugang.c.ui.splash.SplashActivity,app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,appium:http://127.0.0.1:4723/wd/hub,noReset:true,autoLaunch:true,platformName:Android,fullReset:false,deviceName:demo},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}}[39m"
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"appActivity":"com.diqiugang.c.ui.splash.SplashActivity","app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","appium":"http://127.0.0.1:4723/wd/hub,noReset:true,autoLaunch:true,platformName:Android,fullReset:false,deviceName:demo},{},{desiredCapabilities:{appActivity:com.diqiugang.c.ui.splash.SplashActivity,app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,appium:http://127.0.0.1:4723/wd/hub,noReset:true,autoLaunch:true,platformName:Android,fullReset:false,deviceName:demo},requiredCapabilities:{},alwaysMatch:{platformName:Android},firstMatch:[]}"]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1544357813350 (20:16:53 GMT+0800 (中国标准时间))
[info] [35m[Appium][39m Could not parse W3C capabilities: 'deviceName' can't be blank
[info] [35m[Appium][39m Trying to fix W3C capabilities by merging them with JSONWP caps
[warn] [35m[BaseDriver][39m The capabilities ["appActivity","app","appPackage","appium","noReset","autoLaunch","fullReset","deviceName"] are not standard capabilities and should have an extension prefix
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[info] [35m[Appium][39m Creating new AndroidDriver (v4.1.1) session
[info] [35m[Appium][39m Capabilities:
[info] [35m[Appium][39m platformName: Android
[info] [35m[Appium][39m appActivity: com.diqiugang.c.ui.splash.SplashActivity
[info] [35m[Appium][39m app: D:\dqgpro.apk
[info] [35m[Appium][39m appPackage: com.diqiugang.c
[info] [35m[Appium][39m appium: http://127.0.0.1:4723/wd/hub
[info] [35m[Appium][39m noReset: true
[info] [35m[Appium][39m autoLaunch: true
[info] [35m[Appium][39m fullReset: false
[info] [35m[Appium][39m deviceName: demo
[debug] [35m[BaseDriver][39m W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"appActivity":"com.diqiuga... were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by appium: appium.
[info] [35m[BaseDriver][39m Session created with session id: e1751bda-9c93-4258-ac0e-193bba2e8214[info] [35m[AndroidDriver][39m Java version is: 1.8.0_73
[info] [35m[AndroidDriver][39m Retrieving device list
[debug] [35m[ADB][39m Trying to find a connected android device
[debug] [35m[ADB][39m Getting connected devices...
[debug] [35m[ADB][39m 1 device(s) connected
[info] [35m[AndroidDriver][39m Using device: GWY0217207001917
[debug] [35m[ADB][39m Setting device id to GWY0217207001917
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.sdk'
[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 24
[debug] [35m[ADB][39m Device API level: 24
[warn] [35m[AndroidDriver][39m Consider setting 'automationName' capability to 'uiautomator2' on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[info] [35m[BaseDriver][39m Using local app 'D:\dqgpro.apk'
[debug] [35m[AndroidDriver][39m Checking whether app is actually present
[info] [35m[AndroidDriver][39m Starting Android session
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 wait-for-device'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell echo ping'
[debug] [35m[AndroidDriver][39m Pushing settings apk to device...
[debug] [35m[ADB][39m Getting install status for io.appium.settings
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell pm list packages io.appium.settings'[debug] [35m[ADB][39m App is installed
[debug] [35m[ADB][39m Getting package info for 'io.appium.settings'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell dumpsys package io.appium.settings'
[debug] [35m[ADB][39m The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell ps'
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell appops set io.appium.settings android:mock_location allow'
[warn] [35m[AndroidDriver][39m setDeviceLanguageCountry requires language or country.
[warn] [35m[AndroidDriver][39m Got language: 'undefined' and country: 'undefined'
[debug] [35m[Logcat][39m Starting logcat capture
[debug] [35m[AndroidDriver][39m Pushing unlock helper app to device...
[debug] [35m[ADB][39m Getting install status for io.appium.unlock
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell pm list packages io.appium.unlock'[debug] [35m[ADB][39m App is installed
[debug] [35m[ADB][39m Getting package info for 'io.appium.unlock'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell dumpsys package io.appium.unlock'
[debug] [35m[ADB][39m The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0')
[info] [35m[ADB][39m Getting device platform version
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.build.version.release'
[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 7.0
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell wm size'[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.model'
[debug] [35m[ADB][39m Current device property 'ro.product.model': MHA-AL00
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell getprop ro.product.manufacturer'
[debug] [35m[ADB][39m Current device property 'ro.product.manufacturer': HUAWEI
[debug] [35m[ADB][39m Getting install status for com.diqiugang.c
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell pm list packages com.diqiugang.c'[debug] [35m[ADB][39m App is installed
[debug] [35m[ADB][39m Getting package info for 'com.diqiugang.c'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell dumpsys package com.diqiugang.c'
[debug] [35m[ADB][39m The installed 'com.diqiugang.c' package does not require upgrade (234 > 233)
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell rm -rf /data/local/tmp/strings.json'[debug] [35m[AndroidDriver][39m Extracting strings from apk
[debug] [35m[AndroidDriver][39m D:\dqgpro.apk
[debug] [35m[AndroidDriver][39m undefined
[debug] [35m[AndroidDriver][39m C:\Users\21422\AppData\Local\Temp\com.diqiugang.c
[debug] [35m[ADB][39m Extracting strings for language: default
[info] [35m[ADB][39m Successfully extracted 943 strings from 'D:\dqgpro.apk' resources for '(default)' configuration[debug] [35m[AndroidBootstrap][39m Watching for bootstrap disconnect
[debug] [35m[ADB][39m Forwarding system: 4724 to device: 4724
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 forward tcp:4724 tcp:4724'
[debug] [35m[UiAutomator][39m Starting UiAutomator
[debug] [35m[UiAutomator][39m Moving to state 'starting'
[debug] [35m[UiAutomator][39m Parsing uiautomator jar
[debug] [35m[UiAutomator][39m Found jar name: 'AppiumBootstrap.jar'
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 push 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\bootstrap\bin\AppiumBootstrap.jar' /data/local/tmp/'
[debug] [35m[ADB][39m Attempting to kill all uiautomator processes
[debug] [35m[ADB][39m Getting all processes with uiautomator
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell ps'[info] [35m[ADB][39m No uiautomator process found to kill, continuing...
[debug] [35m[UiAutomator][39m Starting UIAutomator
[debug] [35m[ADB][39m Creating ADB subprocess with args: ["-P",5037,"-s","GWY0217207001917","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.diqiugang.c","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false][debug] [35m[UiAutomator][39m Moving to state 'online'
[info] [35m[AndroidBootstrap][39m Android bootstrap socket is now connected
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell dumpsys window'
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] json loading complete.
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Registered crash watchers.
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Client connected
[info] [35m[AndroidDriver][39m Screen already unlocked, doing nothing
[debug] [35m[ADB][39m Device API level: 24
[debug] [35m[ADB][39m Running 'D:\android\android-sdk-windows\platform-tools\adb.exe -P 5037 -s GWY0217207001917 shell am start -W -n com.diqiugang.c/com.diqiugang.c.ui.splash.SplashActivity -S'[info] [35m[Appium][39m New AndroidDriver session created successfully, session e1751bda-9c93-4258-ac0e-193bba2e8214 added to master session list
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1544357819437 (20:16:59 GMT+0800 (中国标准时间))
[debug] [35m[W3C][39m Cached the protocol value 'W3C' for the new session e1751bda-9c93-4258-ac0e-193bba2e8214
[debug] [35m[W3C][39m Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","appActivity":"com.diqiugang.c.ui.splash.SplashActivity","app":"D:\dqgpro.apk","appPackage":"com.diqiugang.c","appium":"http://127.0.0.1:4723/wd/hub,noReset:true,autoLaunch:true,fullReset:false,deviceName:demo},platformName:Android,appActivity:com.diqiugang.c.ui.splash.SplashActivity,app:D:\\dqgpro.apk,appPackage:com.diqiugang.c,appium:http://127.0.0.1:4723/wd/hub,noReset:true,autoLaunch:true,fullReset:false,deviceName:GWY0217207001917,deviceUDID:GWY0217207001917,platformVersion:7.0,deviceScreenSize:1080x1920,deviceModel:MHA-AL00,deviceManufacturer:HUAWEI}"}
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[32m200[39m [90m6089 ms - 933[39m
[info] [35m[HTTP][39m [90m[39m
[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/window/rect[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.getWindowRect() with args: ["e1751bda-9c93-4258-ac0e-193bba2e8214"]
[debug] [35m[AndroidBootstrap][39m Sending command to android: {"cmd":"action","action":"getDeviceSize","params":{}}[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/timeouts[39m
[info] [35m[HTTP][39m [90m{"implicit":10000}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.timeouts() with args: [null,null,null,null,10000,"e1751bda-9c93-4258-ac0e-193bba2e8214"]
[debug] [35m[BaseDriver][39m W3C timeout argument: {"implicit":10000}}
[debug] [35m[BaseDriver][39m Set implicit wait to 10000ms
[debug] [35m[W3C][39m Responding to client with driver.timeouts() result: null
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/timeouts [39m[32m200[39m [90m4 ms - 14[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/window/rect[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.getWindowRect() with args: ["e1751bda-9c93-4258-ac0e-193bba2e8214"]
[debug] [35m[AndroidBootstrap][39m Sending command to android: {"cmd":"action","action":"getDeviceSize","params":{}}
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"getDeviceSize","params":{}}
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Got command action: getDeviceSize
[debug] [35m[AndroidBootstrap][39m Received command result from bootstrap
[debug] [35m[W3C][39m Responding to client with driver.getWindowRect() result: {"width":1080,"height":1812,"x":0,"y":0}
[info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/window/rect [39m[32m200[39m [90m23 ms - 50[39m
[info] [35m[HTTP][39m [90m[39m
[debug] [35m[AndroidBootstrap][39m [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"height":1812,"width":1080}}
[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/execute/sync[39m
[info] [35m[HTTP][39m [90m{"script":"var source = document.documentElement.outerHTML; \nif (! source) { source = new XMLSerializer().serializeToString(document); }\nreturn source;","args":[]}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.execute() with args: ["var source = document.documentElement.outerHTML; \nif (! source) { source = new XMLSerializer().serializeToString(document); }\nreturn source;",[],"e1751bda-9c93-4258-ac0e-193bba2e8214"]
[debug] [35m[W3C][39m Encountered internal error running command: NotImplementedError: Method is not implemented
[debug] [35m[W3C][39m at AndroidDriver.callee$0$0$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:12:9)
[debug] [35m[W3C][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke as _invoke
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.prototype.(anonymous function) as next
[debug] [35m[W3C][39m at invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [35m[W3C][39m at enqueueResult (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:185:17)
[debug] [35m[W3C][39m at new Promise (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:177:1)
[debug] [35m[W3C][39m at new F (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\core-js\library\modules\$.export.js:30:36)
[debug] [35m[W3C][39m at AsyncIterator.enqueue (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:184:12)
[debug] [35m[W3C][39m at AsyncIterator.prototype.(anonymous function) as next
[debug] [35m[W3C][39m at Object.runtime.async (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:209:12)
[debug] [35m[W3C][39m at AndroidDriver.callee$0$0 as execute
[debug] [35m[W3C][39m at C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:296:26
[debug] [35m[W3C][39m at tryCatcher (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\util.js:26:23)
[debug] [35m[W3C][39m at Promise._settlePromiseFromHandler (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:510:31)
[debug] [35m[W3C][39m at Promise._settlePromiseAt (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:584:18)
[debug] [35m[W3C][39m at Promise._settlePromiseAtPostResolution (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:248:10)
[debug] [35m[W3C][39m at Async._drainQueue (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:128:12)
[debug] [35m[W3C][39m at Async._drainQueues (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:133:10)
[debug] [35m[W3C][39m at Immediate.Async.drainQueues (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:15:14)
[debug] [35m[W3C][39m at runCallback (timers.js:696:18)
[debug] [35m[W3C][39m at tryOnImmediate (timers.js:667:5)
[debug] [35m[W3C][39m at processImmediate (timers.js:649:5)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/execute/sync [39m[33m405[39m [90m9 ms - 3765[39m
[info] [35m[HTTP][39m [90m[39m
[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/execute/sync[39m
[info] [35m[HTTP][39m [90m{"script":"var source = document.documentElement.outerHTML; \nif (! source) { source = new XMLSerializer().serializeToString(document); }\nreturn source;","args":[]}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.execute() with args: ["var source = document.documentElement.outerHTML; \nif (! source) { source = new XMLSerializer().serializeToString(document); }\nreturn source;",[],"e1751bda-9c93-4258-ac0e-193bba2e8214"]
[debug] [35m[W3C][39m Encountered internal error running command: NotImplementedError: Method is not implemented
[debug] [35m[W3C][39m at AndroidDriver.callee$0$0$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:12:9)
[debug] [35m[W3C][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke as _invoke
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.prototype.(anonymous function) as next
[debug] [35m[W3C][39m at invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [35m[W3C][39m at enqueueResult (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:185:17)
[debug] [35m[W3C][39m at new Promise (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:177:1)
[debug] [35m[W3C][39m at new F (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\core-js\library\modules\$.export.js:30:36)
[debug] [35m[W3C][39m at AsyncIterator.enqueue (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:184:12)
[debug] [35m[W3C][39m at AsyncIterator.prototype.(anonymous function) as next
[debug] [35m[W3C][39m at Object.runtime.async (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:209:12)
[debug] [35m[W3C][39m at AndroidDriver.callee$0$0 as execute
[debug] [35m[W3C][39m at C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:296:26
[debug] [35m[W3C][39m at tryCatcher (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\util.js:26:23)
[debug] [35m[W3C][39m at Promise._settlePromiseFromHandler (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:510:31)
[debug] [35m[W3C][39m at Promise._settlePromiseAt (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:584:18)
[debug] [35m[W3C][39m at Promise._settlePromiseAtPostResolution (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:248:10)
[debug] [35m[W3C][39m at Async._drainQueue (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:128:12)
[debug] [35m[W3C][39m at Async._drainQueues (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:133:10)
[debug] [35m[W3C][39m at Immediate.Async.drainQueues (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:15:14)
[debug] [35m[W3C][39m at runCallback (timers.js:696:18)
[debug] [35m[W3C][39m at tryOnImmediate (timers.js:667:5)
[debug] [35m[W3C][39m at processImmediate (timers.js:649:5)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/execute/sync [39m[33m405[39m [90m5 ms - 3765[39m
[info] [35m[HTTP][39m [90m[39m
[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/execute/sync[39m
[info] [35m[HTTP][39m [90m{"script":"var source = document.documentElement.outerHTML; \nif (! source) { source = new XMLSerializer().serializeToString(document); }\nreturn source;","args":[]}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.execute() with args: ["var source = document.documentElement.outerHTML; \nif (! source) { source = new XMLSerializer().serializeToString(document); }\nreturn source;",[],"e1751bda-9c93-4258-ac0e-193bba2e8214"]
[debug] [35m[W3C][39m Encountered internal error running command: NotImplementedError: Method is not implemented
[debug] [35m[W3C][39m at AndroidDriver.callee$0$0$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:12:9)
[debug] [35m[W3C][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.invoke as _invoke
[debug] [35m[W3C][39m at GeneratorFunctionPrototype.prototype.(anonymous function) as next
[debug] [35m[W3C][39m at invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [35m[W3C][39m at enqueueResult (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:185:17)
[debug] [35m[W3C][39m at new Promise (C:\Program Files (x86)\Appium\resources\app\webpack:~\babel-polyfill~\core-js\modules\es6.promise.js:177:1)
[debug] [35m[W3C][39m at new F (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\core-js\library\modules\$.export.js:30:36)
[debug] [35m[W3C][39m at AsyncIterator.enqueue (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:184:12)
[debug] [35m[W3C][39m at AsyncIterator.prototype.(anonymous function) as next
[debug] [35m[W3C][39m at Object.runtime.async (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:209:12)
[debug] [35m[W3C][39m at AndroidDriver.callee$0$0 as execute
[debug] [35m[W3C][39m at C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:296:26
[debug] [35m[W3C][39m at tryCatcher (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\util.js:26:23)
[debug] [35m[W3C][39m at Promise._settlePromiseFromHandler (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:510:31)
[debug] [35m[W3C][39m at Promise._settlePromiseAt (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:584:18)
[debug] [35m[W3C][39m at Promise._settlePromiseAtPostResolution (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:248:10)
[debug] [35m[W3C][39m at Async._drainQueue (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:128:12)
[debug] [35m[W3C][39m at Async._drainQueues (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:133:10)
[debug] [35m[W3C][39m at Immediate.Async.drainQueues (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:15:14)
[debug] [35m[W3C][39m at runCallback (timers.js:696:18)
[debug] [35m[W3C][39m at tryOnImmediate (timers.js:667:5)
[debug] [35m[W3C][39m at processImmediate (timers.js:649:5)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/e1751bda-9c93-4258-ac0e-193bba2e8214/execute/sync [39m[33m405[39m [90m3 ms - 3765[39m
[info] [35m[HTTP][39m [90m[39m

DOS 命令窗口报错日志:
D:>java -jar appcrawler-2.1.3.jar -c example.yml
Exception in thread "main" java.util.NoSuchElementException: last of empty ListBuffer
at scala.collection.mutable.ListBuffer.last(ListBuffer.scala:401)
at com.testerhome.appcrawler.DataRecord.last(DataRecord.scala:40)
at com.testerhome.appcrawler.Crawler.doElementAction(Crawler.scala:985)
at com.testerhome.appcrawler.Crawler.runStartupScript(Crawler.scala:238)
at com.testerhome.appcrawler.Crawler.start(Crawler.scala:152)
at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:344)
at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:312)
at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:92)
at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala

共收到 5 条回复 时间 点赞

看样子是没有找到元素。是脚本写的控件找不到?

发到私密社团下吧,我回复你。

已经改到 私密社团下了,期待回复 .这一天我尝试了各种办法 ,至今依然没解决.....
一开始先修改配置文件, 是否符合 appclawler2.1.3 的语法 ,以及 xpath 是否正确 ,运行后依然没解决
然后同样的配置文件 ,在助教老师阿镰的 mac 本上运行没问题.
然后猜测 是不是我的 appium-sever 版本 ,java 版本 的问题, 然后我又用命令行重新安装了 appium-sever 现在是 1.10 了
就在我写这些的时候,依然还没解决
期盼老师回复

你尝试下在 testcase 中写个较长的时间等待吧。可能是启动的时候你的 app 还没进入自己 app 的界面,或者 app 里没有满足条件的空间,比如加载页这种情况。使用 appium 的 appWaitActivity 或者加个等待都可以解决

解决了 ,谢谢思寒老师。

思寒_seveniruby 关闭了讨论 12月14日 10:40
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册