0

这是我拥有的模块的 build.gradle 文件。

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 28
    buildToolsVersion '29.0.2'

    defaultConfig {
        applicationId "com.example.android.testing.unittesting.basicunitandroidtest"
        minSdkVersion 28
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
}

dependencies {



    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'// Espresso
    def androidx_test_espresso = "3.1.0"
    androidTestImplementation "androidx.test.espresso:espresso-core:$androidx_test_espresso"
    androidTestImplementation "androidx.test.espresso:espresso-contrib:$androidx_test_espresso"
    implementation "androidx.test.espresso:espresso-idling-resource:$androidx_test_espresso"


    def androidx_test = "1.1.0"
    androidTestImplementation "androidx.test:runner:$androidx_test"
    androidTestImplementation "androidx.test:core:$androidx_test"
    androidTestImplementation "androidx.test.ext:junit-ktx:$androidx_test"

    implementation platform('com.google.firebase:firebase-bom:26.7.0')
    implementation 'com.google.firebase:firebase-analytics'

    
}
  • 我在 Firebase 控制台中创建了一个 android 项目,并按照步骤在 firebase 云中注册我的 android 应用程序以对其进行测试。
  • 根据google的文档,我在android studio中创建了测试配置,并将Firebase测试实验室作为目标,并将firebase的android项目创建为云项目。
  • 当我尝试运行配置时,如下所示。 在此处输入图像描述
  • 有谁知道这个问题的解决方案?,将不胜感激。我应用了一些从有用的链接中得到的提示,比如断开 VPN。
  • 我还尝试将应用程序 apk 和测试 apk 上传到 Firebase 测试实验室控制台,但在执行测试后,像这样通过 - 0、失败 - 0 和忽略 - 0。
4

0 回答 0