gpt4 book ai didi

android - Android 的 FireBase 卡在 "Run your app to verify installation"

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:53:16 25 4
gpt4 key购买 nike

我是 android 开发的新手,很长一段时间以来,我一直陷入一个错误,即运行您的应用程序以验证安装(检查应用程序是否已与我们的服务器通信。您可能需要卸载并重新安装您的应用程序)

build.gradle(Module:app)
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
}

dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

最佳答案

您无需为您的问题做任何事情,只需在 Android 模拟器或真正的 Android 设备上运行该应用程序即可。如果您已经制作了您的应用程序并随后添加了依赖项,那么您需要从设备/模拟器中删除该应用程序并重新安装该应用程序。

通过这样做,当应用程序运行时,它将变量从 google-services.json 文件传递​​到 firebase 服务器,并检查同一个应用程序是否正在通信。

这一步是为了验证应用程序中是否正确安装了 firebase 依赖项。如果觉得有难度,也可以跳过这个过程。

关于android - Android 的 FireBase 卡在 "Run your app to verify installation",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55159894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com