问题描述
这是我拥有的模块的 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 像这样。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)