当前位置: 首页 > 知识库问答 >
问题:

了解测试库版本/依赖项

邴姚石
2023-03-14

我找了一段时间如何找出库之间的依赖关系,但我没有找到任何东西。例如。在我的大楼里Gradle是

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile 'com.android.support:support-annotations:25.4.0'
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.4.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support.constraint:constraint-layout-solver:1.0.2'
    testCompile 'junit:junit:4.12'
    androidTestCompile 'com.android.support.test:runner:1.0.1'
    androidTestCompile 'com.android.support.test:rules:1.0.1'
//    androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'
    androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'

我如何知道我可以使用什么版本?(例如,com.android.support:support-annotations:25.4.0是否与com.android.support:Appcompat-v7:25.4.0兼容,等等?)有文件记载吗?例如,Android Studio告诉我,我可以使用newer version(更新版本),方法是将行突出显示为黄色,然后说是newer version(更新版本)。但是如果我改变了它,我最终得到的配置是构建的,如果我运行测试,但没有构建应用程序。或者反之亦然。

共有1个答案

夏侯林
2023-03-14

我也遇到了这个问题,通过从项目中删除build文件夹,然后构建/运行应用程序,我可以解决这个问题。

 类似资料:
  • CocoaPods依赖库版本控制 默认最简单的导入方式 pod 'Moya' 锁定版本 使用逻辑运算符 > 0.1 Any version higher than 0.1 >= 0.1 Version 0.1 and any higher version < 0.1 Any version lower than 0.1 <= 0.1 Version 0.1 and any lower ver

  • Semantic Versioning Packages in Yarn follow Semantic Versioning, also known as “semver”. When you install a new package from the registry it will be added to your package.json with a semver version ra

  • Package dependencies are critical to the success of a package. When you develop the functionality of your package, you will very likely use existing code defined in other packages. Those packages then

  • 我用我的真实情况来说明问题。 我使用logback 1.0.1进行日志记录,它包含SLF4J 1.6.4作为依赖项。我还为遗留日志API(Java . util . logging、log4j和commons-logging)使用SLF4J API桥,它们不是显式的依赖关系。这些也必须(最好)是版本1.6.4。 为了使我的pom.xml尽可能整洁和无错误,我想强制这些API桥接器与SLF4J版本相

  • 请帮助。我有一个非常可怕的时间设置我的测试android工作室。 我已经从cucumber github下载了计算器示例,以练习cucumber代码测试。https://github.com/cucumber/cucumber-jvm/tree/master/android(顺便说一句,其中一些品牌的名字非常令人窒息) 我试图将它与Android Studio一起使用。该程序运行完美(耶!)。然而

  • 主要内容:1. dependOnMethods示例,2. dependsOnGroups示例有时,我们可能需要以特定顺序调用测试用例中的方法,或者可能希望在方法之间共享一些数据和状态。 TestNG支持这种依赖关系,因为它支持在测试方法之间显式依赖的声明。 TestNG允许指定依赖关系: 在注释中使用属性,或者 在注释中使用属性。 在TestNG中,我们使用和来实现依赖测试。 如果依赖方法失败,则将跳过所有后续测试方法。 为了方便演示使用,首先创建一个 Maven 项目: DependO