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
相關文章
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- appium 安裝 apk 包問題APPAPK
- Oracle安裝報錯syntax errorOracleError
- Nodejs的npm安裝模組時候報錯:npm ERR! Error: CERT_UNTRUSTED的解決方法NodeJSNPMErrorRust
- informix初始化的時候報: semget: errno = 28ORM
- weblogic 部署應用的時候報錯 java.util.zip.ZipException: ErrorWebJavaExceptionError
- redhat as4 64位安裝oracle10.2.0.1建庫的時候報錯RedhatOracle
- virtualbox 安裝 虛擬機器的時候報錯不能建立新任務虛擬機
- Android 7.0/8.0 安裝APK時解析包錯誤問題AndroidAPK
- centos6.2安裝virtualbox建立xp的時候出錯CentOS
- open-falcon ---安裝Dashboard時候報錯"SSLError: The read operation timed out"Error
- mysql連線的時候報 ERROR 1129MySqlError
- 安裝APK時SO庫的選擇策略APK
- rsync 客戶端同步的時候報錯客戶端
- 執行dbca命令的時候報錯了
- 安裝XP時PCI.SYS報錯
- 安裝clusterware時候遇到版本不相容錯誤
- Getting Listeners from JavaBeansTM (轉)JavaBean
- APK簽名報錯APK
- 安裝 AppiumAPP
- MySQL 5.5 原始碼安裝報錯"[ERROR] Can't start server"MySql原始碼ErrorServer
- 解決docker啟動映象報錯:docker: Error response from daemonDockerError
- setInterval()呼叫其他函式時候報錯函式
- 物理data guard備standby庫的時候報錯。
- 利用appium-1.5.3.dmg安裝Appium. doctors時,提示 Could not detect Mac OS X Version from sw_vers output: '10.12'APPMac
- 誰遇到過執行 monkey 的時候報 filenotfound 的報錯
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- 我安裝JIVE,在setup時,按繼續候,出現錯誤。
- 配置 C3 工具時,修改/etc/host,再重新安裝叢集的時候報錯
- golang原始碼安裝時fatal error: MSpanList_Insert錯誤Golang原始碼Error
- 解決vue使用Sass時候的報錯問題Vue
- suse10啟動vsftp的時候報錯FTP
- nginx安裝報錯Nginx
- 安裝VUE報錯Vue
- 解決 java 實體中用 LocalDateTime 在轉換時候報錯 Error attempting to get column ‘XXX’ from result set. Cause: java.sql.JavaLDAErrorSQL
- mac安裝,Sail up初始化時報錯,ERROR [ 5/13] RUN apt-get update...MacAIErrorapt-get
- APK安裝過程APK
- firefox 開啟em時候報ssl_error_weak_server_ephemeral_dh_key錯誤FirefoxErrorServer