capabilities.setCapability("automationName", "Appium");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("platformVersion", "4.4");
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("appPackage", "com.app.android.activity");
capabilities.setCapability("appActivity", ".MainFragmentActivity");
appium server console error
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk"
warn: Installing remote apk failed, going to uninstall and try again
info: Uninstalling com.app.android.activity
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop com.app.android.activity"
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 uninstall com.app.android.activity
debug: App was not uninstalled, maybe it wasn't on device?
info: Removing any old apks
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/*.apk"
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 shell rm "/data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk"
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 push "/Users/vikram/Documents/workspace/Android/build/apk/android_application.apk" /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk
info: Attempting to install again for the last time
debug: executing: "/Applications/AndroidStudio.app/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk"
info: Stopping logcat capture
debug: Logcat terminated with code null, signal SIGTERM
info: Sent shutdown command, waiting for UiAutomator to stop...
warn: UiAutomator did not shut down fast enough, calling it gone
info: Cleaning up android objects
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Remote install failed: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
pkg: /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
info: Error: Remote install failed: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
pkg: /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:1312:17
at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:154:5
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Remote install failed: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.\r\n\tpkg: /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk\r\nFailure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]\r\n)","origValue":"Remote install failed: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.\r\n\tpkg: /data/local/tmp/71f3ccc9e6ed23cdb81144809960ec99.apk\r\nFailure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]\r\n"},"sessionId":null}
POST /wd/hub/session 500 21523ms - 664b
Note
1. I've installed and re-installed app on emulator
2. I tried with new emulator
3. why is appium trying to install remotely ?
Thanks and Regards,
Vikram