Java client 1.1.0 issue : Android Emulator - always getting error "linker: libdvm.so has text...

835 views
Skip to first unread message

80Vikram

unread,
May 9, 2014, 10:21:32 AM5/9/14
to appium-...@googlegroups.com
Hi All,

Yesterday I've updated my java sample program just to launch my app successfully on emulator but it's always giving error.

Please help me to get solve this issue

java program snipet

    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



bootstrap online

unread,
May 9, 2014, 10:33:22 AM5/9/14
to 80Vikram, appium-...@googlegroups.com
Appium should be uninstalling the apk and trying again. This seems like a bug.
> --
> http://appium.io
> ---
> You received this message because you are subscribed to the Google Groups
> "Appium-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to appium-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appium-discuss.
> For more options, visit https://groups.google.com/d/optout.

80Vikram

unread,
May 9, 2014, 11:01:57 AM5/9/14
to appium-...@googlegroups.com, 80Vikram
Halo bootstraponline, 

Thanks for the reply, I'm following up on this issue through 


please review and comment.

Thanks,
Vikram

80Vikram

unread,
May 12, 2014, 5:12:12 AM5/12/14
to appium-...@googlegroups.com, 80Vikram
Hi Saucelabs team and all,

I'll be really helpful if Sauce Labs team or some other experienced engineers with Appium; kindly help me to get started.

Any work around for this issue or any other way to un-block it ?

Am still not sure if it's bug or I'm doing something wrong.

Thanks & Regards,
Vikram

Pooja Shah

unread,
Jun 3, 2014, 5:34:30 AM6/3/14
to appium-...@googlegroups.com, vikra...@gmail.com
Hi Vikram,

This issue is not with Appium rather its with signed APK which is already there in your emulator/device and the conflicts occur when the appium tyies to install the same app but with different certificate.
Uninstall that APP manually from your device/emulator, will solve the issue.

Read more on:

Regards,
Pooja

Pooja Shah

unread,
Jun 3, 2014, 5:37:14 AM6/3/14
to appium-...@googlegroups.com, vikra...@gmail.com

80Vikram .

unread,
Jun 6, 2014, 10:44:03 AM6/6/14
to Pooja Shah, appium-...@googlegroups.com
Hi Pooja,

Thanks for detailed info.  I'll try this out.

Best Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages