zoukankan      html  css  js  c++  java
  • robotium之does not have a signature matching问题

    今天发现个很low的问题,脚本都写好了,运行Robotium测试用例时报错如下:

    [2017-03-01 09:58:54 - baiduAppTest] Test run failed: Permission Denial: starting instrumentation ComponentInfo{com.example.tieba.test/android.test.InstrumentationTestRunner} from pid=24015, uid=24015 not allowed because package com.example.tieba.test does not have a signature matching the target com.baidu.tieba

     

    【原因】:
    我竟然忘了重签名,直接测试的,网上还有因为家里和公司的keystore的不一致;也会出现这个问题。
    解决方案:
    1、我重新签名后好用了
    2、如不好使:参照下面
    我的C盘下:C:UsersAdministrator.android没有debug.keystore文件,所以我把eclipse里配置的路径下的文件拷贝到了C盘下;
    重新运行,问题解决了~~
    总之,
    只要把eclipse的默认keystore与C:Users下的一致就行了;
    eclipse配置路径:
    window->Prefrences->Android->Build下:Default debug keystore设置成C:UsersAdministrator.androiddebug.keystore
  • 相关阅读:
    安装mysql
    date, Calendar
    心态
    jdbc ---- DBUTilDao 类
    jdbc--------JdbcUtilDao 类
    Python与C/C++相互调用
    用链表和数组实现HASH表,几种碰撞冲突解决方法
    用链表实现消息队列
    文件系统的发展
    [深度学习]开源的深度学习框架
  • 原文地址:https://www.cnblogs.com/longronglang/p/6492361.html
Copyright © 2011-2022 走看看