AppCrawler 运行测试报错

求大佬指导一下,谢谢!
1.运行下面命令
java -jar appcrawler.jar -a xueqiu.apk
2.报下面错误


appium日志
(upload://xv8j884PdiYb1cNb2ceTrarAj6p.jpeg)
[HTTP] {“desiredCapabilities”:{“appActivity”:"",“app”:"/Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk",“appPackage”:"",“appium”:“http://127.0.0.1:4723/wd/hub",“noReset”:“true”,“autoLaunch”:“true”,“platformName”:“Android”,“fullReset”:“false”,“deviceName”:“demo”},“requiredCapabilities”:{},“capabilities”:{“desiredCapabilities”:{“appActivity”:"",“app”:"/Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk",“appPackage”:"",“appium”:“http://127.0.0.1:4723/wd/hub”,“noReset”:“true”,“autoLaunch”:“true”,“platformName”:“Android”,“fullReset”:“false”,“deviceName”:“demo”},“requiredCapabilities”:{},“alwaysMatch”:{“platformName”:“Android”},"firstMatch”:}}

[W3C] Calling AppiumDriver.createSession() with args: [{“appActivity”:"",“app”:"/Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk",“appPackage”:"",“appium”:“http://127.0.0.1:4723/wd/hub",“noReset”:“true”,“autoLaunch”:“true”,“platformName”:“Android”,“fullReset”:“false”,“deviceName”:“demo”},{},{“desiredCapabilities”:{“appActivity”:"",“app”:"/Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk",“appPackage”:"",“appium”:“http://127.0.0.1:4723/wd/hub”,“noReset”:“true”,“autoLaunch”:“true”,“platformName”:“Android”,“fullReset”:“false”,“deviceName”:“demo”},“requiredCapabilities”:{},“alwaysMatch”:{“platformName”:“Android”},"firstMatch”:}]

[BaseDriver] Event ‘newSessionRequested’ logged at 1626922979336 (11:02:59 GMT+0800 (CST))

[Appium] Could not parse W3C capabilities: ‘deviceName’ can’t be blank

[Appium] Trying to fix W3C capabilities by merging them with JSONWP caps

[BaseDriver] The capabilities [“appActivity”,“app”,“appPackage”,“appium”,“noReset”,“autoLaunch”,“fullReset”,“deviceName”] are not standard capabilities and should have an extension prefix

[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.

[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.

[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.

[Appium] Creating new AndroidDriver (v3.7.0) session

[Appium] Capabilities:

[Appium] platformName: Android

[Appium] appActivity:

[Appium] app: /Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk

[Appium] appPackage:

[Appium] appium: http://127.0.0.1:4723/wd/hub

[Appium] noReset: true

[Appium] autoLaunch: true

[Appium] fullReset: false

[Appium] deviceName: demo

[BaseDriver] W3C capabilities {“alwaysMatch”:{“platformNa… and MJSONWP desired capabilities {“appActivity”:”",“app”:"/U… were provided

[BaseDriver] Creating session with W3C capabilities: {“alwaysMatch”:{"platformNa…

[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.

[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.

[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.

[BaseDriver] Capability ‘autoLaunch’ changed from string to boolean. This may cause unexpected behavior

[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior

[BaseDriver] Capability ‘fullReset’ changed from string to boolean. This may cause unexpected behavior

[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium.

[BaseDriver] Session created with session id: c132776d-d358-4800-a584-5cc0eb5ee79e

[AndroidDriver] Java version is: 1.8.0_271

[AndroidDriver] Retrieving device list

[ADB] Trying to find a connected android device

[ADB] Getting connected devices…

[ADB] 1 device(s) connected

[AndroidDriver] Using device: PJW4PFUGBQBQFQSW

[ADB] Setting device id to PJW4PFUGBQBQFQSW

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell getprop ro.build.version.sdk’

[ADB] Current device property ‘ro.build.version.sdk’: 27

[ADB] Device API level: 27

[AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.

[BaseDriver] Using local app ‘/Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk’

[AndroidDriver] Checking whether app is actually present

[AndroidDriver] Starting Android session

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW wait-for-device’

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell echo ping’

[AndroidDriver] Pushing settings apk to device…

[ADB] Getting install status for io.appium.settings

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell pm list packages io.appium.settings’

[ADB] App is not installed

[ADB] App ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk’ not installed. Installing

[ADB] Device API level: 27

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW install -g /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk’

[ADB] Install command stdout: Performing Streamed Install

[ADB] Success

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell ps’

[ADB] Device API level: 27

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’

[ADB] Device API level: 27

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell appops set io.appium.settings android:mock_location allow’

[AndroidDriver] setDeviceLanguageCountry requires language or country.

[AndroidDriver] Got language: ‘undefined’ and country: ‘undefined’

[Logcat] Starting logcat capture

[AndroidDriver] Pushing unlock helper app to device…

[ADB] Getting install status for io.appium.unlock

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell pm list packages io.appium.unlock’

[ADB] App is not installed

[ADB] App ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk’ not installed. Installing

[ADB] Device API level: 27

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW install -g /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk’

[ADB] Install command stdout: Performing Streamed Install

[ADB] Success

[ADB] Getting device platform version

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell getprop ro.build.version.release’

[ADB] Current device property ‘ro.build.version.release’: 8.1.0

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell wm size’

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell getprop ro.product.model’

[ADB] Current device property ‘ro.product.model’: vivo 1808

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell getprop ro.product.manufacturer’

[ADB] Current device property ‘ro.product.manufacturer’: vivo

[AndroidDriver] Parsing package and activity from app manifest

[ADB] Using the alternative activity name detection method because of: Could not find apkanalyzer in /Users/liwen/android-sdk-macosx/platform-tools/apkanalyzer,/Users/liwen/android-sdk-macosx/emulator/apkanalyzer,/Users/liwen/android-sdk-macosx/tools/apkanalyzer,/Users/liwen/android-sdk-macosx/tools/bin/apkanalyzer,/Users/liwen/android-sdk-macosx/build-tools/29.0.3/apkanalyzer. Do you have the Android SDK installed at ‘/Users/liwen/android-sdk-macosx’?

[ADB] Extracting package and launch activity from manifest

[AndroidDriver] Shutting down Android driver

[AndroidDriver] Called deleteSession but bootstrap wasn’t active

[Logcat] Stopping logcat capture

[ADB] Running ‘/Users/liwen/android-sdk-macosx/platform-tools/adb -P 5037 -s PJW4PFUGBQBQFQSW shell am force-stop io.appium.unlock’

[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.

[BaseDriver] Event ‘newSessionStarted’ logged at 1626923018744 (11:03:38 GMT+0800 (CST))

[W3C] Encountered internal error running command: Error: packageAndLaunchActivityFromManifest failed. Original error: Command ‘java -jar /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar printLaunchActivity /Users/liwen/Downloads/com.xueqiu.android_12.38.2_liqucn.com.apk /var/folders/bt/nxskmw0n773_6fckpp6zd2r40000gn/T/com.xueqiu.android’ exited with code 1; StdErr: Exception in thread “main” brut.androlib.AndrolibException: Multiple resources: spec=0x7f0800a3 drawable/abc_dialog_material_background, config=[DEFAULT]

[W3C] at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)

[W3C] at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)

[W3C] at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:186)

[W3C] at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)

[W3C] at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)

[W3C] at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)

[W3C] at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

[W3C] at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

[W3C] at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:605)

[W3C] at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)

[W3C] at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)

[W3C] at io.appium.apktools.AndroidManifestActivityHelper.decodeManifestXML(AndroidManifestActivityHelper.java:26)

[W3C] at io.appium.apktools.Main.main(Main.java:33)

[W3C]

[W3C] at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/android-manifest.js:183:9)

[W3C] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

[W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

[W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

[W3C] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

[W3C] at

[HTTP] ← POST /wd/hub/session 500 39418 ms - 4371

[HTTP]

你的appium正常吗

关闭