FireBase stuck on “Run your app to verify installation” for android

前端 未结 18 697
再見小時候
再見小時候 2021-02-05 00:57

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. Y

相关标签:
18条回答
  • 2021-02-05 01:27

    I solved updating the SDK Tools: Preferences -> Appearance & Behavior -> System Settings -> Updates, then click on "Check Now".

    When the update was completed I uninstalled the app from the emulator, quitted both Android Studio and emulator and ran again

    0 讨论(0)
  • 2021-02-05 01:29

    In my case the problem was that in the gradle file at project level, I had set the latest google-services, which at the time of this answer is 4.3.0:

    classpath 'com.google.gms:google-services:4.3.0'
    

    Then I noticed that in the Firebase wizard, the configuration steps showed instead a previous version: 4.2.0

    Changing my gradle one to match the same version as shown in the Firebase configuration wizard solved the problem.

    Note: so, my conclusion is that regardless of which one is the latest google-services version, (and the versions we talk about in this stack-overflow question and answer), we should always use the version shown in the Firebase wizard configuration steps.

    0 讨论(0)
  • 2021-02-05 01:32

    I followed every step, but i didn't work. So I contacted the Firebase support and got the following answer:

    Thanks for reaching out, Simon.

    I'd recommend just skipping that step altogether. The app should have already been successfully added and to verify that Firebase is working, it'd be better to directly test whichever service you're trying to use.

    Let me know if you have any other questions/issues.

    ---- Update 2020-01-20 ----

    I found out that someone of my colleagues added this snippet in the AndroidManifest.xml a couple of years ago. After enabling analytics again I got the expected behaviour in the Firebase console.

    <meta-data
        android:name="firebase_analytics_collection_deactivated"
        android:value="true" />
    
    0 讨论(0)
  • 2021-02-05 01:32

    Follow the exact version mentioned in Waizard, It will show success.

    Its worked for me.

    0 讨论(0)
  • 2021-02-05 01:33

    You are not stucked my friend, just follow this steps: 1. Go to your android studio project and click on Main_activity.xml to show your app 2. click run menu and run the app either in a real device or an emulator 3. when it has loaded the app, then your connection will be successful in firebase

    0 讨论(0)
  • 2021-02-05 01:34

    Make sure you:

    1. Have included google() in the buildscript repositories in the android/build.gradle
    2. Have added classpath 'com.google.gms:google-services:4.3.3' dependency in the android/build.gradle
    3. Have included google() in the allprojects repositories in the android/build.gradle

    And this official documentation helped me a lot (I just followed all the steps).

    0 讨论(0)
提交回复
热议问题