简体   繁体   English

我已在应用中更改了Firebase名称,但该应用仍加载了旧的Firebase

[英]I have changed the Firebase name in my app but still the app loads the old firebase

I change all the setting to my own settings. 我将所有设置更改为自己的设置。 the firebase settings is my own. firebase的设置是我自己的。

"firebase_url": "https://xxxxxxxxx.firebaseio.com",

I rebuild the app in android studio, the build apk. 我在android studio中重建应用程序,即生成apk。 uppload it to my phone, when i then try it, it still have the old firebase in the app. 将其上传到我的手机上,当我再尝试时,它在应用程序中仍然有旧的firebase。 I dont now what to do, and hope someone can help me. 我现在不做什么,并希望有人可以帮助我。

Uppdate: 更新时间:

Can it be something in the package names? 包名称中可以包含吗? This is the name i have. 这是我的名字。

root/app/build.gradle 根/应用程序/ build.gradle

applicationId: com.xxxxxxx.user.app

root/app/src/main/AndroidManifest root / app / src / main / AndroidManifest

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xxxxxxx.app">

Root/app/google-services.json 根目录/app/google-services.json

{
  "project_info": {
    "project_number": "xxxxxxxxxxxxxxxxxxx",
    "firebase_url": "https://xxxxxxx-user.firebaseio.com",
    "project_id": "xxxxxxx-user",
    "storage_bucket": "xxxxxxx-user.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
        "android_client_info": {
          "package_name": "com.xxxxxx.user.app"
        }
      },

Firebase Console: Firebase控制台:

Project name : xxxxxxx-user
Project ID : xxxxxxx-user

root/app/src/main/java/com/xxxxxxx/user/app/Helper root / app / src / main / java / com / xxxxxxx / user / app / Helper

package com.xxxxxxx.user.app.Helper;

make sure to create new google-services.json in firebase, or delete the one already in your project root folder. 确保在firebase中创建新的google-services.json,或删除项目根文件夹中已有的一个。

From the Firebase Console: 从Firebase控制台:

  1. Simply log in to the console 只需登录控制台
  2. Choose the project the app is connected to 选择应用程序连接到的项目
  3. You will see a box displaying information about the Android App connected to the Firebase project 您将看到一个框,显示有关连接到Firebase项目的Android应用的信息
  4. Click on the 3 dots button at the top right of the android app box and click Manage 单击android应用程序框右上角的3点按钮,然后单击管理
  5. Scroll down a bit and click the arrow button next to the Advanced Options header 向下滚动并单击“高级选项”标题旁边的箭头按钮
  6. A Delete this app button will appear, click it and it will disconnect your android app from your Firebase project. 将会出现一个Delete this app按钮,单击它,它将断开您的Android应用程序与Firebase项目的连接。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我已经更改了我的应用程序的软件包名称,但是在Firebase上,它仍然是前一个。 请查看详细信息 - I have changed the package name of my app but on Firebase, it is still the previous one. Please see details 我是否必须在 Android Studio 和 Firebase 控制台 Z2567A5EC3005EB7AC2CZ948 中将我的应用程序链接到 Firebase? - Do I have to link my app to Firebase in both Android Studio and Firebase Console web? 我的应用程序正在将反馈保存到 firebase 但会覆盖旧反馈 - My app is saving feedback to firebase but overwriting old feedback Firebase Analytics 未跟踪我的应用程序屏幕的名称:屏幕名称(未设置) - Firebase Analytics not tracking the name of my app screens: Screen name (not set) 我更改了包名,更改了 app_name 但安装程序仍然覆盖以前的版本 - I changed package name, changed the app_name but installer still overwrites previous version 如果我的 android 本机应用程序中有多个模块,如何连接 firebase - How to connect firebase if I have multiple modules in my android native app 我已将 Firebase Analytics 放入我的 Android 应用程序中,但只有用户属性未被测量 - I have put Firebase Analytics into my Android app, but only user properties are not being measured 如果我的应用已从Google Play暂停,我是否仍可以使用firebase的功能和firestore数据库? - Can I still use firebase's features & firestore database, if my app has been suspended from Google Play? 每次我重新启动应用程序时,Flutter 都会加载旧版本的应用程序 - Flutter loads old version of app every time I restart the app 在我的应用程序中集成Firebase的麻烦 - Troubles with integrating firebase in my app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM