appium 初始化安裝的時候報錯 Error getting strings.xml from apk
appium log
info: Client User-Agent string: appium/python 0.52 (selenium/3.141.0 (python windows))
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
info: [debug] Using local app from desired caps: C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk
info: [debug] Creating new appium session 225dad31-d728-4a7b-bb41-6242346a57fe
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 11.0.4
info: [debug] Checking whether adb is present
info: [debug] Using adb from C:\android-sdk-windows\platform-tools\adb.exe
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device 46c4bd8
info: [debug] Setting device id to 46c4bd8
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 46c4bd8 wait-for-device
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 46c4bd8 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Getting device API level
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 46c4bd8 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 23
info: Device API level is: 23
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 46c4bd8 shell "getprop persist.sys.language"
info: [debug] Current device persist.sys.language:
info: [debug] java -jar "C:\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk" "C:\WINDOWS\TEMP\com.xinrenlei.koubeigongzuo"
info: [debug] No strings.xml for language '', getting default strings.xml
info: [debug] java -jar "C:\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk" "C:\WINDOWS\TEMP\com.xinrenlei.koubeigongzuo"
warn: Error getting strings.xml from apk
info: [debug] WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.appium.apktools.StringsXML (file:/C:/Appium/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar) to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of io.appium.apktools.StringsXML
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f110046 style/Base.Theme.AppCompat.Dialog, config=-v21
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:186)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:605)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at io.appium.apktools.StringsXML.run(StringsXML.java:84)
at io.appium.apktools.Main.main(Main.java:31)
Cleaning up unclosed ZipFile for archive C:\appresource\onsite-user-Vmaster-Release-200508-1625.apkwarn: Could not get strings, continuing anyway
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 46c4bd8 shell "echo '{}' > /data/local/tmp/strings.json"
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from C:\android-sdk-windows\build-tools\28.0.3\aapt.exe
info: [debug] Retrieving process from manifest.
info: [debug] executing cmd: C:\android-sdk-windows\build-tools\28.0.3\aapt.exe dump xmltree C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk AndroidManifest.xml
info: [debug] Set app process to: com.xinrenlei.koubeigongzuo
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk.
info: [debug] executing cmd: java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk
info: [debug] App not signed with debug cert.
info: [debug] Resigning apk.
info: [debug] executing cmd: java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk --override
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
warn: UiAutomator did not shut down fast enough, calling it gone
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk --override"
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at s.Sign.addDigestsToManifest(Sign.java:108)
at s.Sign.sign(Sign.java:454)
at s.Sign.main(Sign.java:532)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 3 moreinfo: [debug] Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk --override"
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at s.Sign.addDigestsToManifest(Sign.java:108)
at s.Sign.sign(Sign.java:454)
at s.Sign.main(Sign.java:532)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 3 moreat ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c \"java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk --override\"\nException in thread \"main\" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder\r\n\tat s.Sign.addDigestsToManifest(Sign.java:108)\r\n\tat s.Sign.sign(Sign.java:454)\r\n\tat s.Sign.main(Sign.java:532)\r\nCaused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)\r\n\tat java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)\r\n\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)\r\n\t... 3 more\r\n)","killed":false,"code":1,"signal":null,"cmd":"C:\WINDOWS\system32\cmd.exe /s /c \"java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk --override\"","origValue":"Command failed: C:\WINDOWS\system32\cmd.exe /s /c \"java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\appresource\onsite-user-Vmaster-Release-200508-1625.apk --override\"\nException in thread \"main\" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder\r\n\tat s.Sign.addDigestsToManifest(Sign.java:108)\r\n\tat s.Sign.sign(Sign.java:454)\r\n\tat s.Sign.main(Sign.java:532)\r\nCaused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder\r\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)\r\n\tat java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)\r\n\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)\r\n\t... 3 more\r\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 11811.088 ms - 1920
相關文章
- appium 安裝 apk 包問題APPAPK
- Nodejs的npm安裝模組時候報錯:npm ERR! Error: CERT_UNTRUSTED的解決方法NodeJSNPMErrorRust
- appium start session 時報錯 Error executing adbExec. Original error 求指點APPSessionError
- mac安裝,Sail up初始化時報錯,ERROR [ 5/13] RUN apt-get update...MacAIErrorapt-get
- Android 7.0/8.0 安裝APK時解析包錯誤問題AndroidAPK
- 安裝APK時SO庫的選擇策略APK
- 解決 java 實體中用 LocalDateTime 在轉換時候報錯 Error attempting to get column ‘XXX’ from result set. Cause: java.sql.JavaLDAErrorSQL
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- laravel11: 安裝時報錯Laravel
- 使用 Composer 安裝 Laravel 時報錯Laravel
- 靜默安裝oracle時報錯Oracle
- appium start session 時報錯 Error executing adbExec. Original error。已經卡了一天,求大神指點APPSessionError
- 安裝 AppiumAPP
- 解決docker啟動映象報錯:docker: Error response from daemonDockerError
- golang原始碼安裝時fatal error: MSpanList_Insert錯誤Golang原始碼Error
- APK簽名報錯APK
- Python錯誤:PyCharm 安裝出錯 Internal error,please。。。PythonPyCharmError
- SQL server開啟 安裝包時報錯SQLServer
- vagrant下composer安裝laravel-wechat時候,出現could not delete的錯誤Laraveldelete
- cURL error 52: Empty reply from server GitHub 三方登入報錯ErrorServerGithub
- 誰遇到過執行 monkey 的時候報 filenotfound 的報錯
- RF appium環境的安裝APP
- 【Android PackageManager】使用PackageManager讀取APK ICON時候的大坑AndroidPackageAPK
- 安裝VUE報錯Vue
- 安裝heapster報錯
- 配置 C3 工具時,修改/etc/host,再重新安裝叢集的時候報錯
- 安裝FreeIPA以及應用時報錯彙總
- 安裝as10g3的售後報錯Error in invoking target 'ntcontab.o' of makefileError
- 解決vue使用Sass時候的報錯問題Vue
- WireMock 的時候報錯:No response could be served as there are no stub mappings in this WireMockREMMockAPP
- oracle RAC dbca的時候報錯提示cluster nodes are not accessibleOracle
- Rocky9安裝python3.6報錯 make: *** [Makefile:1102: install] Error 139PythonError
- Linux7安裝11g 86%報錯:Error in invoking target 'agent nmhs'LinuxError
- 安裝ElasticSearch-6.2.3所遇到的安裝報錯Elasticsearch
- react native 安裝app時報錯 ”已安裝了簽名衝突的應用“React NativeAPP
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- 『與善仁』Appium基礎 — 12、Appium的安裝詳解APP
- pb安裝多個版本時候,執行pbw時會報 Attempt to open datawindow failedAI