Hi anyone can help me to resolve this issue,
I'm facing the issue while creating session using (desiredCapabilities.setCapability("automationName", "Espresso")),
Error:
org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot install 'C:\Users\Naveen\AppData\Local\Temp\io.appium.espressoserver.test_1.16.0_com.knila.bustracking.apk' because of 'Error executing adbExec. Original error: 'Command 'C:\Users\Naveen\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm install /data/local/tmp/appium_cache/870347bd8a70a87c5dfcc563a8d00b29c27d4ab7.apk' exited with code 1'; Stderr: 'Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1217648408.tmp/base.apk: META-INF/CERT.SF indicates /data/app/vmdl1217648408.tmp/base.apk is signed using APK Signature Scheme v2, but no such signature was found. Signature stripped?]'; Code: '1''
Config:
desiredCapabilities.setCapability("deviceName", deviceName);
desiredCapabilities.setCapability("platformVersion", platformVersion);
desiredCapabilities.setCapability("platformName", platformName);
desiredCapabilities.setCapability("appPackage", appPackage);
// desiredCapabilities.setCapability("autoGrantPermissions", "true");
desiredCapabilities.setCapability("automationName", "Espresso");
If you guys don't mind, Can anyone help me to resolve with the below issue.
I am using Appium 1.4.16.1, selenium-java-2.53.1, java-client-4.0.0, Android SDK Tools 25.1.7
I am getting below exception while running the script.
2019-10-19 10:38:38:043 - warn: Error getting strings.xml from apk
2019-10-19 10:38:38:043 - info: [debug] Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f080020 drawable/abc_dialog_material_background, config=[DEFAULT]
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)2019-10-19 10:38:38:043 - warn: Could not get strings, continuing anyway