Google+ Followers

Friday, 31 January 2014

calabash-android: common problems with solutions (screenshots attached)

1) java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{com.appname.test/sh.calaba.instrumentationbackend.ClearAppData} from pid=2904, uid=2904 not allowed because package com.appname.test does not have a signature matching the target com.appname.

this is seen when you are trying to run tests against app which was built on different machine but tests are run from your machine. In this case application built on different machine will have different signature (incase you haven't shared the keystore file with them) and your test server cannot communicate with the app

Solution: 
manually uninstall app from device
take the apk file and resign it - calabash-android resign app.apk
now run tests , they will work fine

2) invalid multibyte char (US-ASCII)
Add below on top of your ruby source files.
# encoding: utf-8




4 comments:

  1. the population owning an iPad or other tablet, it is no surprise that vendors in the title and settlement industry have begun to jump into the mobile arena. mobile spy software

    ReplyDelete
  2. Apps for WhatsApp eavesdropping and hacking
    Today WhatsApp messaging app is very popular. Almost everyone has this app on your phone or PC. WhatsApp works on all devices like iPhone, Android or Blackberry mobile phones. Many people communicate with their parents, http://whatsapptracking.com/ children, friends or colleagues with the help of WhatsApp chats. In addition, WhatsApp is free, so this app is also used in the family circle. A woman chats with the man, the boy with his girlfriend. Now, partners can easily send each other photos, videos, some images during the day.

    ReplyDelete
  3. Thanks for making such a cool post which is really very well written.will be referring a lot of friends about this.Keep blogging mobile tracking

    ReplyDelete
  4. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
    Mobile App Development Company
    Android App Development Company

    ReplyDelete