robotium之does not have a signature matching问题

Posted 久曲健

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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:\\Users\\Administrator\\.android\\没有debug.keystore文件,所以我把eclipse里配置的路径下的文件拷贝到了C盘下;
重新运行,问题解决了~~
总之,
只要把eclipse的默认keystore与C:\\Users下的一致就行了;
eclipse配置路径:
window->Prefrences->Android->Build下:Default debug keystore设置成C:\\Users\\Administrator\\.android\\debug.keystore

以上是关于robotium之does not have a signature matching问题的主要内容,如果未能解决你的问题,请参考以下文章

does not have a NavController set on

解决 The swarm does not have a leader

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

E-03RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

.Net自带ChartControl报错:Auto interval does not have proper value