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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值