好吧,我知道,一个类似的问题被问了好几次,但我找不到解决问题的办法。我需要测试我的申请。因此,我遵循了一个教程,告诉我添加Android运行程序支持。
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'问题是,这似乎与我的公司库不兼容。
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'但是这些库是需要的,因为我们是在API的25级上开发的。所以,回到23版不是一个选择,我想。
那我怎么才能让它运行呢?我是不是遗漏了什么?
发布于 2016-11-15 15:18:39
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'请参阅supportAnnotations的旧版本
com.android.support:support-annotations:23.1.1你有几个选择:
suportAnnotations版本(以覆盖任何传递依赖项):
androidTestCompile 'com.android.support:support-annotations:25.0.1‘https://stackoverflow.com/questions/40613068
复制相似问题