FireBase停留在“运行您的应用以验证安装"对于Android [英] FireBase stuck on "Run your app to verify installation" for android

查看:94
本文介绍了FireBase停留在“运行您的应用以验证安装"对于Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm new to android development, since a long time, I'm stuck in one error that is Run your app to verify installation (Checking if the app has communicated with our servers. You may need to uninstall and reinstall your app.)

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设备上运行该应用即可.如果您制作了应用程序,后来又添加了dependencies,则需要从设备/仿真器中删除该应用程序,然后重新安装该应用程序.

You have to do nothing for your question but run the app on the android emulator or a real android device. If you have made your app and later added the dependencies, then you need to delete the app from the device/emulator and install the app again.

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

By doing this, when the app runs, it passes variables from the google-services.json file to the firebase servers and checks if the same app is communicating or not.

此步骤是为了验证应用中是否正确安装了Firebase依赖项.如果发现困难,则可以跳过该过程.

This step is to verify the correct installation of firebase dependencies in the app. If you find it difficult, you can skip the process anyway.

这篇关于FireBase停留在“运行您的应用以验证安装"对于Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆