obotium之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.keystoreEOF
本文作者:久曲建的测试窝
本文链接:https://www.cnblogs.com/longronglang/p/6492361.html关于博主:评论和私信会在第一时间回复。或者直接私信我。版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!声援博主:如果您觉得文章对您有帮助,可以点击文章右下角【推荐】一下。您的鼓励是博主的最大动力!优秀不够,你是否无可替代软件测试交流QQ群:721256703,期待你的加入!!
欢迎关注我的微信公众号:软件测试君
精彩评论