android - 尝试在 Android Studio 的 Firebase 测试实验室上执行检测的 android 测试时,弹出“找不到应用程序的 Apk”的提示
问题描述
这是我拥有的模块的 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。
解决方案
推荐阅读
- javascript - 使用 display 属性在手风琴内显示/隐藏 div 会导致 div 永久显示
- r - 在其他数据框中搜索列值并通过属性值更改它
- javascript - 如何为所有属性都是具有不同参数的函数的对象创建泛型类型或接口?
- javascript - 函数在检查元素中返回空白数组,其中包含不可访问的数据
- tensorflow - 'ValueError:logits 和标签必须具有相同的形状 ((None, 2) vs (None, 1))'
- database - 在 Applescript/Automator 中将 .csv 表转换为数据库
- flutter - Android Studio 突然没有响应
- swift - 在 SwiftUI 中将图像遮盖到另一个图像的透明部分
- python - 如何在 imgaug 中为一张图像应用多个旋转值?(不是随机的)
- excel - VBA 运行时错误“1004”中的 GoalSeek:应用程序定义或对象定义错误