请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

An unknown server-side error occurred while processing the command.

An unknown server-side error occurred while processing the command. Original error: packageAndLaunchActivityFromManifest failed. Original error: Command ‘/Users/liyong/android-sdk-macosx/build-tools/29.0.2/aapt dump badging /Users/liyong/Downloads/me.ele_386.apk’ exited with code null
老师这个问题怎么解决?

正在回答 回答被采纳积分+3

3回答

提问者 慕粉1853097852 2019-11-25 19:55:54

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]


0 回复 有任何疑惑可以回复我~
提问者 慕粉1853097852 2019-11-25 19:55:19

{

  "platformName": "Android",

  "deviceName": "emulator-5554",

  "app": "/Users/liyong/Downloads/bbc4c283181b83f31166246d0d4b1441.apk",

  "appPackage": "com.tencent.mm"

}


0 回复 有任何疑惑可以回复我~
  • 还有你启动页面的activity
    回复 有任何疑惑可以回复我~ 2019-11-26 23:15:50
Mushishi 2019-11-24 20:23:19

把你的启动代码发一下,在启动代码中把activity和package指定一下

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉1853097852 #1
    没有解决
    回复 有任何疑惑可以回复我~ 2019-11-25 19:56:33
  • Mushishi 回复 提问者 慕粉1853097852 #2
    再次出现什么错误
    回复 有任何疑惑可以回复我~ 2019-11-26 23:15:34
  • 提问者 慕粉1853097852 回复 Mushishi #3
    我删掉重新安装了一下
    selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: pkg: /data/local/tmp/appium_cache/59c32a53a59a8f61714667168fa294ec3d0d40ec.apk
    Failure [INSTALL_FAILED_INVALID_APK]
    
    报这个错误
    回复 有任何疑惑可以回复我~ 2019-11-27 14:49:26
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信