The server is running
[Appium] Welcome to Appium v1.15.1
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/liyong/Downloads/bbc4c283181b83f31166246d0d4b1441.apk","appPackage":"com.tencent.mm","deviceName":"emulator-5554","platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/liyong/Downloads/bbc4c283181b83f31166246d0d4b1441.apk","appPackage":"com.tencent.mm","deviceName":"emulator-5554","platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1574682864392 (19:54:24 GMT+0800 (CST))
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The 'automationName' capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting 'automationName=UiAutomator2' by default and using the
[Appium] UiAutomator2 Driver
[Appium]
[Appium] The next major version of Appium (2.x) will **require** the
[Appium] 'automationName' capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] 'automationName=UiAutomator1'
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add 'automationName=UiAutomator1' to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] 'Drivers' menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[BaseDriver] Creating session with MJSONWP desired capabilities: {
[BaseDriver] "app": "/Users/liyong/Downloads/bbc4c283181b83f31166246d0d4b1441.apk",
[BaseDriver] "appPackage": "com.tencent.mm",
[BaseDriver] "deviceName": "emulator-5554",
[BaseDriver] "platformName": "Android",
[BaseDriver] "newCommandTimeout": 0,
[BaseDriver] "connectHardwareKeyboard": true
[BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] connectHardwareKeyboard
[BaseDriver] Session created with session id: b27692b4-dd82-4651-bd31-f9e37e3f495e
[BaseDriver] Using local app '/Users/liyong/Downloads/bbc4c283181b83f31166246d0d4b1441.apk'
[UiAutomator2] Checking whether app is actually present
[ADB] Using 'adb' from '/Users/liyong/android-sdk-macosx/platform-tools/adb'
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[AndroidDriver] Using device: emulator-5554
[ADB] Using 'adb' from '/Users/liyong/android-sdk-macosx/platform-tools/adb'
[ADB] Setting device id to emulator-5554
[ADB] Running '/Users/liyong/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[ADB] Current device property 'ro.build.version.sdk': 23
[ADB] Device API level: 23
[AndroidDriver] Parsing package and activity from app manifest
[ADB] Using the alternative activity name detection method because of: Could not find 'apkanalyzer' in ["/Users/liyong/android-sdk-macosx/platform-tools/apkanalyzer","/Users/liyong/android-sdk-macosx/emulator/apkanalyzer","/Users/liyong/android-sdk-macosx/tools/apkanalyzer","/Users/liyong/android-sdk-macosx/tools/bin/apkanalyzer","/Users/liyong/android-sdk-macosx/build-tools/29.0.2/apkanalyzer"]. Do you have Android Build Tools installed at '/Users/liyong/android-sdk-macosx'?
[ADB] Using 'aapt' from '/Users/liyong/android-sdk-macosx/build-tools/29.0.2/aapt'
[ADB] Extracting package and launch activity from manifest
[UiAutomator2] Deleting UiAutomator2 session
[ADB] Running '/Users/liyong/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.tencent.mm'
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running '/Users/liyong/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/liyong/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb: error: listener 'tcp:8200' not found'; Code: '1''
[BaseDriver] Event 'newSessionStarted' logged at 1574682864813 (19:54:24 GMT+0800 (CST))
[MJSONWP] Encountered internal error running command: Error: packageAndLaunchActivityFromManifest failed. Original error: Command '/Users/liyong/android-sdk-macosx/build-tools/29.0.2/aapt dump badging /Users/liyong/Downloads/bbc4c283181b83f31166246d0d4b1441.apk' exited with code null
[MJSONWP] at ADB.packageAndLaunchActivityFromManifest (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/android-manifest.js:136:9)
[HTTP] <-- POST /wd/hub/session 500 422 ms - 360
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 3 ms - 57
[HTTP]